Click or drag to resize

CsvTransformerT Class

Transforms an instance of type T to and from CSV data.
Inheritance Hierarchy
SystemObject
  Enkoni.Framework.SerializationTransformerT
    Enkoni.Framework.SerializationCsvTransformerT

Namespace:  Enkoni.Framework.Serialization
Assembly:  Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntax
public class CsvTransformer<T> : Transformer<T>
where T : new()

Type Parameters

T
Type of the object that has to be serialized.

The CsvTransformerT type exposes the following members.

Constructors
  NameDescription
Public methodCsvTransformerT
Initializes a new instance of the CsvTransformerT class.
Top
Properties
  NameDescription
Protected propertyColumnNameMappings
Gets the mappings of the column names. The dictionary uses the column index as key and column name as value.
Protected propertyCultureMappings
Gets the mappings of the cultures. The dictionary uses the column index as key and culture name as value.
Protected propertyEmitHeader
Gets or sets a value indicating whether a header-line must be included when serializing the objects.
Protected propertyFormatMappings
Gets the mappings of the format strings. The dictionary uses the column index as key and format string as value.
Protected propertyIgnoreHeaderOnRead
Gets or sets a value indicating whether the header should be ignored when reading the file.
Protected propertyNullStringMappings
Gets the mappings of the null strings. The dictionary uses the column index as key and null string as value.
Protected propertyPropertyDelegates
Gets the delegates that give access to the properties of the instances that need to be serialized and deserialized.
Protected propertySeparator
Gets or sets the separator-string.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFromBytes(Byte, Encoding)
Transforms the content of a byte array into an instance of type T.
(Inherited from TransformerT.)
Public methodFromBytes(Byte, Int32, Int32, Encoding)
Transforms the content of a byte array into an instance of type T.
(Inherited from TransformerT.)
Protected methodFromBytesCore(Byte, Encoding)
Transforms the content of a byte array into an instance of type T.
(Overrides TransformerTFromBytesCore(Byte, Encoding).)
Protected methodFromBytesCore(Byte, Int32, Int32, Encoding)
Transforms the content of a byte array into an instance of type T.
(Overrides TransformerTFromBytesCore(Byte, Int32, Int32, Encoding).)
Public methodFromString
Transforms a string value into an instance of type T.
(Inherited from TransformerT.)
Protected methodFromStringCore
Transforms a string value into an instance of type T.
(Overrides TransformerTFromStringCore(String).)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToBytes(T, Encoding)
Transforms instance into a byte array.
(Inherited from TransformerT.)
Public methodToBytes(T, Encoding, Byte, Int32)
Transforms instance into a byte array.
(Inherited from TransformerT.)
Protected methodToBytesCore(T, Encoding)
Transforms instance into a byte array.
(Overrides TransformerTToBytesCore(T, Encoding).)
Protected methodToBytesCore(T, Encoding, Byte, Int32)
Transforms instance into a byte array.
(Overrides TransformerTToBytesCore(T, Encoding, Byte, Int32).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToString(T)
Transforms instance into a string.
(Inherited from TransformerT.)
Protected methodToStringCore
Transforms instance into a string.
(Overrides TransformerTToStringCore(T).)
Top
See Also