Enum CsvQuoteValidation
- Namespace
- FlameCsv
- Assembly
- FlameCsv.Core.dll
Enumeration that determines quote validation rules when reading.
public enum CsvQuoteValidation : byte
Fields
AllowInvalid = 1Accept quotes even in fields that are not wrapped in quotes.
Example:foo"bar".Quote parity is still required; every field must have an even number of quotes. Fields wrapped in quotes must still follow the quoting rules.
Strict = 0Quotes must be used strictly according to the CSV specification. Fields with invalid quotes will throw CsvFormatException.
ValidateAllRecords = 3Same as ValidateUnreadFields, but also validate all fields of records skipped by RecordCallback.
Enabling this has a performance impact, and should be enabled only when the data is expected to be malformed.
ValidateUnreadFields = 2Same as Strict, but validate all fields in every record even if they are not read.
This affects the parsing and enumeration APIs. Has no effect while writing.Enabling this has a performance impact, and should be enabled only when the data is expected to be malformed.