Class DataConverter
Base class of the data type converter.
Inheritance
System.Object
DataConverter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public abstract class DataConverter
Constructors
DataConverter()
Declaration
protected DataConverter()
Methods
ReadValue(DataReader)
Reads the value in the specified DataReader and converts it into the value of this converter type.
Declaration
public abstract object ReadValue(DataReader reader)
Parameters
Type | Name | Description |
---|---|---|
DataReader | reader | Data source for the conversion. |
Returns
Type | Description |
---|---|
System.Object | The value of this converter type. |
WriteValue(DataWriter, String, Object)
Converts the value of the specified object to the type of this converter and writes it with the specified name to the specified output stream.
Declaration
public abstract void WriteValue(DataWriter writer, string name, object value)
Parameters
Type | Name | Description |
---|---|---|
DataWriter | writer | The DataWriter instance for a record. |
System.String | name | The name of the object. |
System.Object | value | The value of the object. |