2c7374e6 8ca3 05f8 2172 a2af951a0016 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvContainer.GetValue Method (String, Int32, Type)

This method gets the type-save value for provided header and at specified index taking provide type into account.

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

Syntax

C#

public Object GetValue(
	string header,
	int index,
	Type type
)

Parameters

 

header
Type: System.String
The header name of affected column.
index
Type: System.Int32
The zero-based index of affected row.
type
Type: System.Type
The expected type to convert the string value into.

Return Value

Type: Object
An object representing the value for provided header and at specified index.

Exceptions

 

Exception Condition
Exception This method might throw any of the exceptions of the TypeConverter.

Remarks

First of all it is tried to get the string for provided header and at specified index. Thereafter, the type converter is called by providing additional information.

See Also

Reference

CsvContainer Class
GetValue Overload
Plexdata.CsvParser.Processors Namespace
CsvContainer.Exactly
CsvContainer.Culture
CsvContainer.Mappings
CsvContainer.TryGetValue(String, Int32, Type)
CsvContainer.GetObject(String, Type)
TypeConverter.IntoObject(String, Type, Boolean, CultureInfo, CsvMappings)

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