Interface IScpiValueConverter
- Namespace
- Loehnert.Lisrt.Communication.Scpi
- Assembly
- Loehnert.Lisrt.Communication.dll
Represents a value converter for ScpiCommandBuilder.
public interface IScpiValueConverter
Methods
CanConvert(Type)
Checks whether a type can be converted by this converter.
bool CanConvert(Type type)
Parameters
type
TypeType to check.
Returns
- bool
A value indicating whether a type can be converted.
ConvertToObject(string, Type)
Converts a string to an object.
object ConvertToObject(string value, Type type)
Parameters
Returns
- object
To converted value.
ConvertToString(object)
Converts value
to a string.
string ConvertToString(object value)
Parameters
value
objectValue to convert.
Returns
- string
A string representing the value.