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

Set FieldAlignment globally for the whole class? #224

Open abrasat opened 1 year ago

abrasat commented 1 year ago

Is it possible to set the FieldAlignment for a whole class (lets say to the value 1 or 2), without having to mark each field of the class with the FieldAlignment() tag (similar with #pragma pack())? What is the default alignment if nothing is specified?