Class FixedWidthFieldInfo

Namespace
Wolfgang.Etl.FixedWidth
Assembly
Wolfgang.Etl.FixedWidth.dll

Read-only metadata for a single resolved column in a fixed-width record layout — either a mapped field or a skipped column — exposed by FixedWidthSchema (#22).

public sealed class FixedWidthFieldInfo
Inheritance
FixedWidthFieldInfo
Inherited Members

Remarks

Positions are zero-based and inclusive: a field at columns 0..7 has StartPosition 0 and EndPosition 7. Skipped columns (IsSkip is true) have no Name/PropertyType/Header and expose their SkipMessage instead.

Properties

Alignment

The field alignment. Defaults to Left for a skipped column.

public FieldAlignment Alignment { get; }

Property Value

FieldAlignment

ColumnIndex

The absolute zero-based column index within the record, including skipped columns.

public int ColumnIndex { get; }

Property Value

int

EndPosition

The zero-based, inclusive end position of this column (StartPosition + Length - 1).

public int EndPosition { get; }

Property Value

int

Format

The format string applied to this field, or null if none / a skipped column.

public string? Format { get; }

Property Value

string

Header

The header label written for this field, or null for a skipped column.

public string? Header { get; }

Property Value

string

IsSkip

Whether this column is a skipped column rather than a mapped field.

public bool IsSkip { get; }

Property Value

bool

Length

The width of this column in characters.

public int Length { get; }

Property Value

int

Name

The mapped property name, or null for a skipped column.

public string? Name { get; }

Property Value

string

NumberStyles

The explicit NumberStyles for numeric parsing, or null to use the type's natural style.

public NumberStyles? NumberStyles { get; }

Property Value

NumberStyles?

Pad

The pad character. Defaults to space for a skipped column.

public char Pad { get; }

Property Value

char

PropertyType

The mapped property's type, or null for a skipped column.

public Type? PropertyType { get; }

Property Value

Type

SkipMessage

The optional message describing a skipped column, or null for a mapped field.

public string? SkipMessage { get; }

Property Value

string

StartPosition

The zero-based, inclusive start position of this column in the line.

public int StartPosition { get; }

Property Value

int