CsvRecordIndexOfColumn Method

Returns the zero-based index of the column in the CSV file, that has the specified column name, or -1, if columnName is not one of the column names in the CSV file.

Definition

Namespace: FolkerKinzel.CsvTools
Assembly: FolkerKinzel.CsvTools (in FolkerKinzel.CsvTools.dll) Version: 2.0.1+2345335399184346d9b2cc992ed5c814406052c1
C#
public int IndexOfColumn(
	string? columnName
)

Parameters

columnName  String
The column name to be checked for the index of CsvRecord that it refers to.

Return Value

Int32
The zero-based index of the column in the CSV file with the column name columnName or -1, if columnName is not one of the column names in the CSV file.

See Also