ConversionDelegate Delegate |
Namespace: Demo3D.PLC.Comms
public delegate DataValue ConversionDelegate( IDataContextProvider? contextProvider, in DataValue dataValue )
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.