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 .Attributes - Containing Type
- NameAttribute
Syntax
public NameAttribute(params string[] names)
Parameters
Name | Type | Description |
---|---|---|
names | string[] | The names. |