TelegramFormatSelectorSelectOutboundTelegramFormat Method |
Namespace: Demo3D.HLE.Comms.Telegram
public virtual TelegramFormat? SelectOutboundTelegramFormat( IEnumerable<TelegramFormat> formats, DataStruct value )
By default, the method just iterates through the given formats and matches the format name with the ToString method of the value object.
To implement a custom selection algorithm, TelegramFormatSelector can be extended. This allows SelectOutboundTelegramFormat(IEnumerableTelegramFormat, DataStruct) to be overriden with a custom method.