Table of Contents

Struct CsvDialect

Namespace
ExcelReader.Core.Reader.Csv
Assembly
ExcelReader.Core.dll

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

CsvDialect

Delimiter

Gets the byte used to separate fields within a record.

public byte Delimiter { get; init; }

Property Value

byte

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

Encoding

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

bool

Quote

Gets the byte used to quote fields.

public byte Quote { get; init; }

Property Value

byte