Enum in CsvHelper
CsvMalformedReason
Added in v34.0.0
Why a record was reported as malformed.
public enum CsvMalformedReason- Namespace
CsvHelper- Assembly
CsvHelper.dll- Builds
- net10.0 netstandard2.1 netstandard2.0 net47
- Source
- CsvReaderOptions.cs
Values
| Name | Value | Description |
|---|---|---|
StrayQuote | 0 | A quote inside an unquoted field, such as ab"c. |
TextAfterClosingQuote | 1 | Text after the closing quote of a quoted field, such as "ab"c. |
UnterminatedQuote | 2 | A quoted field that is never closed before the end of the input. |
LineBreakInQuotes | 3 | A line break inside a quoted field while CsvReaderOptions.AllowLineBreaksInQuotes is off. |
FieldCountMismatch | 4 | The record's field count differs from the header (or first record). |
TrailingEscape | 5 | In CsvMode.Escape mode, the input ends with an escape character that has nothing to escape. It is kept as text. |