969009dc fa1c f50e 4591 bebbca213454 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvContainerExtension.GetColumn Method

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

Syntax

C#

private static int GetColumn(
	this CsvContainer container,
	string header
)

Parameters

 

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.

Return Value

Type: Int32
The zero-based column index or -1.

Usage Note

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).

Remarks

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.

See Also

Reference

CsvContainerExtension Class
Plexdata.CsvParser.Extensions Namespace

⚠️ **GitHub.com Fallback** ⚠️