bf7cb763 9055 3597 3488 dfc1c8d6147b - akesseler/Plexdata.CsvParser GitHub Wiki
Gets and sets the list of column items for provided header.
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public IEnumerable<string> this[
string header
] { get; set; }
- header
- Type: System.String
The header name to get a column for.
Type: IEnumerable(String)
An enumerable list of column items.
Type: IEnumerable(String)
The whole list of column items or null
if not found or in case of heading is disabled.
This getter tries to find the column where its top level item fits provided header name and returns the whole list of column items. Very important to note, calling this getter will only have any effect if Heading is enabled.
The setter instead tries to change all affected elements at column referenced by provided header. Only possible elements are overwritten by its new content in case of source list is longer than column referenced by header. In contrast to that all remaining elements are reset to null
in case of source list is shorter than column referenced by provided header.
Additionally please note that nothing will happen if the source list is null
or empty.
Attention: Any existing column header might be overwritten if new column content does not contain the original header!
CsvContainer Class
Item Overload
Plexdata.CsvParser.Processors Namespace
CsvContainer.Heading
CsvContainer.GetColumnIndex(String)