DataConverterGetConvertFrom Method |
Namespace: Demo3D.PLC.Comms
public virtual ConversionFunction? GetConvertFrom( IDataContextProvider? contextProvider, DataType sourceType, DataType destinationType )
You can assume that the value passed to the conversion function is non-null and is of type sourceType.
When setting up a conversion, the contextProvider passed to this function must be the same provider that was passed to CanConvertFrom(IDataContextProvider, DataType, DataType), and the same provider must aslso be passed to the ConversionDelegate returned.
Each instance of the IDataContextProvider is supposed to provide the context for one particular conversion for one particular data stream.