CsvMappingBuilder Class

Builder for CsvMapping instances.

Definition

Namespace: FolkerKinzel.CsvTools.Mappings
Assembly: FolkerKinzel.CsvTools.Mappings (in FolkerKinzel.CsvTools.Mappings.dll) Version: 1.1.0+1263e8243dc2cd78095f678f813d7d9c52ea4315
C#
public sealed class CsvMappingBuilder
Inheritance
Object    CsvMappingBuilder

Remarks

An instance of the DynamicProperty class represents a dynamic property ("late binding") of the CsvMapping object that can be used like a regular .NET property if the CsvMapping instance is assigned to a variable that is declared with the keyword dynamic.

The AddProperty methods of CsvMappingBuilder allow to create and add DynamicProperty instances. The order, in which the DynamicProperty instances are added, determines their index in the newly created CsvMapping instance. These indexes may differ from the indexes of the columns of the CSV file that these DynamicProperty instances access.

Methods

AddPropertyT(String, MultiColumnTypeConverterT) Adds a new DynamicProperty instance that accesses several columns of a CSV file.
AddPropertyT(String, TypeConverterT) Adds a new DynamicProperty instance that accesses a single column of a CSV file with its column name.
AddPropertyT(String, IEnumerableString, TypeConverterT) Adds a new DynamicProperty instance that accesses a single column of a CSV file with a collection of column name aliases.
AddPropertyT(String, Int32, TypeConverterT) Adds a new DynamicProperty instance that accesses a single column of the CSV file with its index.
Build Builds a new CsvMapping instance from the contents of CsvMappingBuilder and deletes all contents of CsvMappingBuilder on return.
Create Creates a new CsvMappingBuilder instance.
GetTypeGets the Type of the current instance.
(Inherited from Object)

See Also