The MessageSerializer uses C# to serialize classes to an array of bytes and vice-versa while automatically calculating fields such as lengths and CRCs.
PropertyRuleLengthField
The PropertyRuleLengthFieldPropertyRule is intended to be used to make a property named “Length” be automatically
set up as an CalculatedLengthResult property. This will be applied to any field name “Length” that does not
already have a CalculatedLength or CalculatedLengthResult property.