Click or drag to resize
Accord.NET (logo)

CsvReaderGetFieldIndex Method

Gets the field index for the provided header.

Namespace:  Accord.IO
Assembly:  Accord.IO (in Accord.IO.dll) Version: 3.8.0
Syntax
public int GetFieldIndex(
	string header
)
Request Example View Source

Parameters

header
Type: SystemString
The header to look for.

Return Value

Type: Int32
The field index for the provided header. -1 if not found.
Exceptions
ExceptionCondition
ObjectDisposedException The instance has been disposed of.
See Also