Interface IHasIndex<TClass, TMember>
- Namespace
- CsvHelper.Configuration
- Assembly
- CsvHelper.dll
Has index capabilities.
public interface IHasIndex<TClass, TMember> : IBuildableClass<TClass>
Type Parameters
TClassThe class type.
TMemberThe 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
indexintThe index of the CSV field.
indexEndintThe end index used when mapping to an IEnumerable member.
Returns
- IHasIndexOptions<TClass, TMember>