Enum in CsvHelper
CsvMissingFieldHandling
Added in v34.0.0
What happens when a field past the end of the current record is requested.
public enum CsvMissingFieldHandling- Namespace
CsvHelper- Assembly
CsvHelper.dll- Builds
- net10.0 netstandard2.1 netstandard2.0 net47
- Source
- CsvReaderOptions.cs
Values
| Name | Value | Description |
|---|---|---|
ReturnEmpty | 0 | Missing fields read as empty (the default). Short, ragged records just work. |
Throw | 1 | Throw an IndexOutOfRangeException. |