ICsvFileOptions Interface
Definition
Namespace: DataStandardizer.File.CSV
The read-only view of a reader or writer’s options. The reader, writer, and the field-processing contexts receive options through this interface; CsvFileOptions is the settable implementation.
Syntax
public interface ICsvFileOptions
Remarks
Every member is read-only (get-only). All defaults are RFC 4180–compliant; see CsvFileOptions for the concrete type, its defaults, and how to build an instance.
Properties
| Property | Signature | Notes |
|---|---|---|
BadValueHandler | Delegate? BadValueHandler { get; } | A CsvFieldBadValue delegate for the reader’s record line type. The reader constructor throws ArgumentException for any other type. |
Culture | CultureInfo? Culture { get; } | Culture for value (de)serialization. |
EmbeddedLineBreak | string? EmbeddedLineBreak { get; } | Replacement for line breaks embedded in field values. |
Encoding | Encoding? Encoding { get; } | File encoding. |
FieldDelimiterCharacter | char FieldDelimiterCharacter { get; } | Field separator. A writer rejects a double quote or the first character of TerminatorLineBreak. |
HeaderHandler | Delegate? HeaderHandler { get; } | A CsvFileHeader delegate supplying field names. The reader constructor throws ArgumentException for any other type. |
HeaderHandling | CsvFileHeaderHandling HeaderHandling { get; } | How the header line is handled (reading only). |
InconsistentFieldCountHandler | Delegate? InconsistentFieldCountHandler { get; } | A CsvFieldCount delegate for the reader’s or writer’s record line type. Its constructor throws ArgumentException for any other type. |
QuoteHandling | CsvFieldQuoteHandling QuoteHandling { get; } | Field quoting strategy (writing only). A writer rejects a value CsvFieldQuoteHandling doesn’t define. |
SuppressTrailingBlankFields | bool SuppressTrailingBlankFields { get; } | Omit trailing empty fields on write. |
TerminatorLineBreak | string TerminatorLineBreak { get; } | Line terminator (read and write). Must have at least one character; a writer also rejects one that starts with a double quote. |
Applies to
Targets netstandard1.1, netstandard2.0, netstandard2.1, and net10.0. The nullable reference annotations apply to the netstandard2.1 and net10.0 builds.