Interface IDeviceFieldFormatter<T>
Converts one text field of type T to and from its text in the message.
public interface IDeviceFieldFormatter<T>
Type Parameters
T
- Extension Methods
Methods
Format(T)
Writes the value as the device sends it.
string Format(T value)
Parameters
valueT
Returns
Parse(string)
Reads the device's text; throws FormatException when it is not a value.
T Parse(string text)
Parameters
textstring
Returns
- T