When reading, is used to get the field
at the index of the name if there was a
header specified. It will look for the
first name match in the order listed.
When writing, sets the name of the
field in the header record.
The first name will be used.
- Namespace
- CsvHelper
.Configuration - Containing Type
- IHasName
<TClass, TMember>
Syntax
IHasNameOptions<TClass, TMember> Name(params string[] names)
Parameters
Name | Type | Description |
---|---|---|
names | string[] | The possible names of the CSV field. |
Return Value
Type | Description |
---|---|
IHasNameOptions |