DataConverterCanConvert Method |
Namespace: Demo3D.PLC.Comms
public static bool CanConvert( IDataContextProvider? contextProvider, DataType sourceType, DataType destinationType )
When setting up a conversion, the contextProvider passed to this function and to GetConvertFrom(IDataContextProvider, DataType, DataType) and to the ConversionDelegate returned, must all be the same.
Each instance of the IDataContextProvider is supposed to provide the context for one particular conversion for one particular data stream.