Interface IHasIndex<TClass, TMember>
- Namespace
- CsvHelper.Configuration
- Assembly
- CsvHelper.dll
Has index capabilities.
public interface IHasIndex<TClass, TMember> : IBuildableClass<TClass>
Type Parameters
TClass
The class type.
TMember
The member type.
- Inherited Members
Methods
Index(int, int)
When reading, is used to get the field at the given index. When writing, the fields will be written in the order of the field indexes.
IHasIndexOptions<TClass, TMember> Index(int index, int indexEnd = -1)
Parameters
index
intThe index of the CSV field.
indexEnd
intThe end index used when mapping to an IEnumerable member.
Returns
- IHasIndexOptions<TClass, TMember>