C# Class FlatFiles.FixedLengthSchema

Defines the expected format of a fixed-length file record.
Inheritance: Schema
Afficher le fichier Open project: jehugaleahsa/FlatFiles Class Usage Examples

Private Properties

Свойство Type Description
FormatValues string[]
ParseValues object[]

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat FixedLengthSchema

FixedLengthSchema() public méthode

Initializes a new instance of a FixedLengthSchema.
public FixedLengthSchema ( ) : System
Résultat System