Name(string[]) Method
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
MemberMap

Syntax

public virtual MemberMap Name(params string[] names)

Parameters

Name Type Description
names string[] The possible names of the CSV field.

Return Value

Type Description
MemberMap