Delegate FixedWidthValueParser

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

Converts a raw field value read from the file into the target property type. The text is a zero-copy slice of the source line — call ToString() only if you need a string.

public delegate object FixedWidthValueParser(ReadOnlyMemory<char> text, FieldContext context)

Parameters

text ReadOnlyMemory<char>

The raw field value as a ReadOnlyMemory<T> slice of the source line. Access the characters via text.Span for zero-allocation processing.

context FieldContext

Metadata about the field being parsed, including property type, format string, and field length.

Returns

object

A value assignable to the target property's CLR type.