Enum in CsvHelper
CsvMalformedDataHandling
Added in v34.0.0
What the reader does when the input breaks the quoting rules.
public enum CsvMalformedDataHandling- Namespace
CsvHelper- Assembly
CsvHelper.dll- Builds
- net10.0 netstandard2.1 netstandard2.0 net47
- Source
- CsvReaderOptions.cs
Values
| Name | Value | Description |
|---|---|---|
Recover | 0 | Recover and keep reading (the default). A stray quote inside an unquoted field is kept as text, text after a closing quote is appended to the value ("ab"c reads as abc), and a quoted field that is never closed runs to the end of the input. |
Throw | 1 | Throw a CsvFormatException when a malformed record is reached. |
Skip | 2 | Skip records that contain malformed quoting (report them with CsvReaderOptions.OnMalformedRecord). |