The MessageSerializer uses C# to serialize classes to an array of bytes and vice-versa while automatically calculating fields such as lengths and CRCs.
TypeSelectorSpecifiedClass
The TypeSelectorSpecifiedClass is used when the MessageProperty attribute
is specified on a property and the TypeSerializerClass attribute is set.
TypeSelectorSpecifiedClass checks to make sure that the type specified in TypeSerializerClass
is of type TypeSerializerBase and throws an exception if it is not. Otherwise the type specified
by TypeSerializerClass is returned.