C# Class FlatFiles.FixedLengthSchema

Defines the expected format of a fixed-length file record.
Inheritance: Schema
ファイルを表示 Open project: jehugaleahsa/FlatFiles Class Usage Examples

Private Properties

Property Type Description
FormatValues string[]
ParseValues object[]

Public Methods

Method Description
AddColumn ( IColumnDefinition definition, Window window ) : FixedLengthSchema

Adds a column to the schema, using the given definition to define it.

FixedLengthSchema ( ) : System

Initializes a new instance of a FixedLengthSchema.

Private Methods

Method Description
FormatValues ( object values ) : string[]

Formats the given values assuming that they are in the same order as the column definitions.

ParseValues ( string values ) : object[]

Parses the given values assuming that they are in the same order as the column definitions.

Method Details

AddColumn() public method

Adds a column to the schema, using the given definition to define it.
public AddColumn ( IColumnDefinition definition, Window window ) : FixedLengthSchema
definition IColumnDefinition The definition of the column to add.
window Window Describes the column
return FixedLengthSchema

FixedLengthSchema() public method

Initializes a new instance of a FixedLengthSchema.
public FixedLengthSchema ( ) : System
return System