jefffhaynes / BinarySerializer

A declarative serialization framework for controlling formatting of data at the byte and bit level using field bindings, converters, and code.
MIT License
290 stars 62 forks source link

Re-evaluate ValueGetters if the current value is null during binding evaluation #217

Open bevanweiss opened 1 year ago

bevanweiss commented 1 year ago

As reported in Issue #216, when using a calculated binding, with a ValueGetter, the getter appears to be evaluted only once when initially converted to a TypeNode. This is unfortunately prior to any deserialized values being realised.

This is a slightly hacky solution, but simply re-attempts to evaluate getters where this is the case.