Enum in CsvHelper
CsvFieldCountHandling
Added in v34.0.0
What the reader does when a record's field count differs from the header or first record.
public enum CsvFieldCountHandling- Namespace
CsvHelper- Assembly
CsvHelper.dll- Builds
- net10.0 netstandard2.1 netstandard2.0 net47
- Source
- CsvReaderOptions.cs
Values
| Name | Value | Description |
|---|---|---|
Allow | 0 | Records may have any number of fields (the default). |
Throw | 1 | Throw a CsvFormatException when a record has a different number of fields. |
Skip | 2 | Skip records with a different number of fields (report them with CsvReaderOptions.OnMalformedRecord). |