Struct CsvDialect
The delimiter, quote, and encoding inferred by CsvSniffer from a sample of a delimited-text source.
public readonly record struct CsvDialect : IEquatable<CsvDialect>
- Implements
- Inherited Members
Properties
Default
Gets the dialect returned when a sample does not allow a delimiter to be determined: comma, double quote, UTF-8, no byte-order mark.
public static CsvDialect Default { get; }
Property Value
Delimiter
Gets the byte used to separate fields within a record.
public byte Delimiter { get; init; }
Property Value
Encoding
Gets the encoding detected from a leading byte-order mark, or null when no byte-order mark was found (assume UTF-8).
public Encoding? Encoding { get; init; }
Property Value
HasByteOrderMark
Gets a value indicating whether a byte-order mark was found at the start of the sample.
public bool HasByteOrderMark { get; init; }
Property Value
Quote
Gets the byte used to quote fields.
public byte Quote { get; init; }