DataConverterCanConvertTo Method |
Namespace: Demo3D.PLC.Comms
public virtual bool CanConvertTo( IDataContextProvider? contextProvider, DataType destinationType, DataType sourceType )
When setting up a conversion, the contextProvider passed to this function and to GetConvertTo(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.