09674779 a46c c4e5 87e2 5cdd036f00b0 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvContainer.Item Property (Int32, Int32)

Gets and sets an element for provided column and at specified index.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

public string this[
	int column,
	int index
] { get; set; }

Parameters

 

column
Type: System.Int32
The zero-based index of affected column.
index
Type: System.Int32
The zero-based index of affected row.

Property Value

Type: String
The string representation of the CSV content at column and index.

Return Value

Type: String
The string of affected column at specified index or null if not found.

Remarks

The getter validates provided column as well as specified index and if both are valid it returns the element at column and index. But null is returned either if provided column number or specified index is less than zero or greater than total column count.

Please be aware, the column header (if exist) is returned for an index of zero. The value at index zero is returned instead if no header exists. The other way round, this accessor always returns the value referenced by column and index without respecting the presents of a column header.

The setter instead changes the value at provided column and index but only if both (column and index) are valid.

See Also

Reference

CsvContainer Class
Item Overload
Plexdata.CsvParser.Processors Namespace

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