DataConverter Class |
Namespace: Demo3D.PLC.Comms
public abstract class DataConverter
The DataConverter type exposes the following members.
| Name | Description | |
|---|---|---|
| DataConverter | Initializes a new instance of the DataConverter class |
| Name | Description | |
|---|---|---|
| Add |
Adds a data converter for the specified type to the registry.
| |
| CanConvert |
Returns whether this converter can convert an object of the given type to the type
of this converter, using the specified context.
| |
| CanConvertFrom |
Returns whether this converter can convert an object of the given type to the type
of this converter, using the specified context.
| |
| CanConvertTo |
Returns whether this converter can convert an object to the specified type.
| |
| Clear |
Clears the registry.
| |
| FindConverters |
Returns a list of registered data converters registered with the specified type.
| |
| GetConverter |
Returns a function that will convert a value from one type to another.
| |
| GetConvertFrom |
Returns a function that converts the given object to the type of this converter, using the specified context.
| |
| GetConvertTo |
Returns a function that converts the given value to the specified type, using the specified context.
| |
| Remove |
Removes a data converter for the specified type from the registry.
|
| Name | Description | |
|---|---|---|
| OnConverterAdded |
Occurs when a converter is added to the registry.
| |
| OnConverterRemoved |
Occurs when a converter is removed from the registry.
|