Class FixedWidthDataReaderOptions
- Namespace
- Wolfgang.Etl.FixedWidth
- Assembly
- Wolfgang.Etl.FixedWidth.dll
Options for the Stream-based FixedWidthDataReader<TRecord> constructor.
public sealed record FixedWidthDataReaderOptions : IEquatable<FixedWidthDataReaderOptions>
- Inheritance
-
FixedWidthDataReaderOptions
- Implements
- Inherited Members
Remarks
Supplied as the second constructor parameter, ahead of the optional logger. When the whole options object is null, or an individual property is left unset, the documented defaults below apply — defaults live on the property initializers here rather than in constructor bodies, so no constructor can accidentally diverge from them.
Options are scoped to the input shape they configure, not to the type as a whole, so every property here is meaningful for the constructor it is passed to. This is why there is no counterpart record for the TextReader constructor: a caller-supplied reader already carries its own encoding, so the setting would be inert on that path.
Properties
Encoding
public Encoding Encoding { get; init; }