C# Class FlatFiles.ColumnDefinition

Defines a column that is part of a record schema.
Inheritance: IColumnDefinition
显示文件 Open project: jehugaleahsa/FlatFiles Class Usage Examples

Public Methods

Method Description
Format ( object value ) : string

Formats the given object.

Parse ( string value ) : object

Parses the given value and returns the parsed object.

Protected Methods

Method Description
ColumnDefinition ( string columnName ) : System

Initializes a new instance of a ColumnDefinition.

TrimValue ( string value ) : string

Removes any leading or trailing whitespace from the value.

Private Methods

Method Description
ColumnDefinition ( string columnName, bool isIgnored ) : System

Initializes a new instance of a ColumnDefinition.

Method Details

ColumnDefinition() protected method

Initializes a new instance of a ColumnDefinition.
protected ColumnDefinition ( string columnName ) : System
columnName string The name of the column to define.
return System

Format() public abstract method

Formats the given object.
public abstract Format ( object value ) : string
value object The object to format.
return string

Parse() public abstract method

Parses the given value and returns the parsed object.
public abstract Parse ( string value ) : object
value string The value to parse.
return object

TrimValue() protected method

Removes any leading or trailing whitespace from the value.
protected TrimValue ( string value ) : string
value string The value to trim.
return string