969009dc fa1c f50e 4591 bebbca213454 - akesseler/Plexdata.CsvParser GitHub Wiki
Gets the zero-based index of a column that is referenced by provided header.
Namespace: Plexdata.CsvParser.Extensions
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
private static int GetColumn(
this CsvContainer container,
string header
)
- container
- Type: Plexdata.CsvParser.Processors.CsvContainer
The container to get the column index from. - header
- Type: System.String
The header to get the column index for.
Type: Int32
The zero-based column index or -1
.
In Visual Basic and C#, you can call this method as an instance method on any object of type CsvContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
This extension gets the zero-based index of a column that is referenced by provided header or -1
if no column could be found for any reason.
CsvContainerExtension Class
Plexdata.CsvParser.Extensions Namespace