Calculated Fields IntroductionCalculated fields are fields in a message that are calculated based on other fields in your message. This can include a length field that shows how many bytes are left in the message or a CRC that is calculated on all the bytes in the message before the CRC field. The MessageSerializer uses the When you Serialize a message with the calculated field the calculated value will not only be included in the bytes representing your message but the property for that field will also be set in your class object. In a similar manner, when you Deserialize a message, the property will be set with the value received in the message and also the calculated field value can be verified to make sure that the value received is what was expected. The MessageSerializer has two types of built in calculated fields:
You can also make your own CalculatedField AttributeThe
NameThe Default: Empty string Exclude
Default: Start
Default: End
Default: CalculatedFieldResult attributeThe
CalculatorThis is the Default: PriorityThe Default: DefaultStart
Default: DefaultEnd
Default: Verify
Default: CalculatorBaseAny
There is only one function that has to be implemented:
The |