NameIndexAttribute Class
When reading, is used to get the index of the name used when there are multiple names that are the same.
Namespace
CsvHelper.Configuration.Attributes
Interfaces
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type-.->Interface0["IMemberMapper"] click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IMemberMapper" Type-.->Interface1["IParameterMapper"] click Interface1 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IParameterMapper" Type["NameIndexAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class NameIndexAttribute : Attribute, IMemberMapper, IParameterMapper

Attributes

Type Description
AttributeUsage

Constructors

Name Summary
NameIndexAttribute(int) When reading, is used to get the index of the name used when there are multiple names that are the same.

Properties

Name Property Type Summary
NameIndex int
The name index.

Methods

Name Return Value Summary
ApplyTo(MemberMap) void
Applies configuration to the given MemberMap.
ApplyTo(ParameterMap) void
Applies configuration to the given ParameterMap.