Interface IDeviceFieldFormatter<T>

Namespace
ProtoTest.Devices
Assembly
ProtoTest.Devices.dll

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

value T

Returns

string

Parse(string)

Reads the device's text; throws FormatException when it is not a value.

T Parse(string text)

Parameters

text string

Returns

T