When reading, is used to get the field at
the given index. When writing, the fields
will be written in the order of the field
indexes.
- Namespace
- CsvHelper
.Configuration - Containing Type
- IHasIndex
<TClass, TMember>
Syntax
IHasIndexOptions<TClass, TMember> Index(int index, int indexEnd = -1)
Parameters
Name | Type | Description |
---|---|---|
index | int | The index of the CSV field. |
indexEnd | int | The end index used when mapping to an IEnumerable member. |
Return Value
Type | Description |
---|---|
IHasIndexOptions |