Table of Contents

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 Type

Type 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

value string

Value to convert.

type Type

Type to convert to.

Returns

object

To converted value.

ConvertToString(object)

Converts value to a string.

string ConvertToString(object value)

Parameters

value object

Value to convert.

Returns

string

A string representing the value.