Class DeviceFormatters.Hex

Namespace
ProtoTest.Devices
Assembly
ProtoTest.Devices.dll

A whole number in uppercase hexadecimal: 255 is FF.

public sealed class DeviceFormatters.Hex : IDeviceFieldFormatter<int>
Inheritance
DeviceFormatters.Hex
Implements
Inherited Members
Extension Methods

Methods

Format(int)

Writes the value as the device sends it.

public string Format(int value)

Parameters

value int

Returns

string

Parse(string)

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

public int Parse(string text)

Parameters

text string

Returns

int