Click or drag to resize

IDataContextProvider Interface

Provides contextual information for a data conversion using DataConverter.

Namespace: Demo3D.PLC.Comms
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
public interface IDataContextProvider

The IDataContextProvider type exposes the following members.

Methods
 NameDescription
Public methodGetContext Returns data context of a given type.
Top
Extension Methods
 NameDescription
Public Extension MethodGetContextT Returns data context of a given type.
(Defined by DataContextProvider)
Top
Remarks

One instance of IDataContextProvider should be created and used per conversion per data stream.

DataConverter is used to convert data types. The IDataContextProvider should provide information about the conversion. For example, assigning a boolean into a memory buffer requires knowing which bit in the buffer should be read/written. That information is a property of the variable (the memory buffer) and not the data value (the boolean). A context provider should be able to supply that information.

See Also