Click or drag to resize

DataConverter Class

Provides a unified way of converting types of values to other types.
Inheritance Hierarchy
SystemObject
  Demo3D.PLC.CommsDataConverter

Namespace: Demo3D.PLC.Comms
Assembly: PLC (in PLC.dll) Version: 19.01.00
Syntax
C#
public abstract class DataConverter

The DataConverter type exposes the following members.

Constructors
 NameDescription
Protected methodDataConverterInitializes a new instance of the DataConverter class
Top
Methods
 NameDescription
Public methodStatic memberAdd Adds a data converter for the specified type to the registry.
Public methodStatic memberCanConvert Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Public methodCanConvertFrom Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Public methodCanConvertTo Returns whether this converter can convert an object to the specified type.
Public methodStatic memberClear Clears the registry.
Public methodStatic memberFindConverters Returns a list of registered data converters registered with the specified type.
Public methodStatic memberGetConverter Returns a function that will convert a value from one type to another.
Public methodGetConvertFrom Returns a function that converts the given object to the type of this converter, using the specified context.
Public methodGetConvertTo Returns a function that converts the given value to the specified type, using the specified context.
Public methodStatic memberRemove Removes a data converter for the specified type from the registry.
Top
Events
 NameDescription
Public eventStatic memberOnConverterAdded Occurs when a converter is added to the registry.
Public eventStatic memberOnConverterRemoved Occurs when a converter is removed from the registry.
Top
See Also