Numeric FieldsIn this case, by numeric fields we are talking about the integer types that are built in to C#:
As a general rule if have a numeric property you should just declare the property to be of the type that fits with the data in the message. If you have a 1 byte value you normally would define the property as a TODO: Currently the below feature is broken so numeric types need to be defined as the same type as fits the output size If for some reason you don’t want the number of bytes that the numeric value takes up in the message to match the number of bytes that the numeric type takes up you can use the Length property of the MessageSerializedProperty attribute to indicate how many bytes the value should actually take up Defaults
|