Table of Contents

Class NameIndexAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

When reading, is used to get the index of the name used when there are multiple names that are the same.

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

Constructors

NameIndexAttribute(int)

When reading, is used to get the index of the name used when there are multiple names that are the same.

public NameIndexAttribute(int nameIndex)

Parameters

nameIndex int

The name index.

Properties

NameIndex

The name index.

public int NameIndex { get; }

Property Value

int

Methods

ApplyTo(MemberMap)

public void ApplyTo(MemberMap memberMap)

Parameters

memberMap MemberMap

ApplyTo(ParameterMap)

public void ApplyTo(ParameterMap parameterMap)

Parameters

parameterMap ParameterMap