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
292 stars 62 forks source link

[Question] Serialize scalar according to type field #169

Open SadE54 opened 3 years ago

SadE54 commented 3 years ago

Hi ,

Internally I have a class with a string property and a type property. the string value is coming from a json file and can contain generic numeric value , with the type (bool , byte , integer , float) set by the type property . How can I serialize the numeric value of the string according to the type , with a fixed length of 4 byte ?

Thx