Show / Hide Table of Contents

Class DataConverter

Base class of the data type converter.

Inheritance
System.Object
DataConverter
ProcessUIColorConverter
ProcessUIPointCollectionConverter
ProcessUIPointConverter
ProcessUISizeConverter
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.

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX