Click or drag to resize

ConversionDelegate Delegate

Conversion function.

Namespace:  Demo3D.PLC.Comms
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public delegate DataValue ConversionDelegate(
	IDataContextProvider? contextProvider,
	 in DataValue dataValue
)

Parameters

contextProvider
Type: Demo3D.PLC.CommsIDataContextProvider
A context provider for the conversion.
dataValue
Type: Demo3D.PLC.CommsDataValueInAttribute
The value to convert.

Return Value

Type: DataValue
Remarks

You can assume that value will not be null and will be the correct type for the conversion.

If a context provider was passed to CanConvertFrom(IDataContextProvider, DataType, DataType) or CanConvertTo(IDataContextProvider, DataType, DataType) then the same one will be passed here too.

See Also