77ecb70b 7217 28ca 4c94 c2bb43a01d07 - akesseler/Plexdata.CsvParser GitHub Wiki
This method tries to get the type-save value for provided column an 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
C#
public Object TryGetValue(
int column,
int index,
Type type
)
- column
- Type: System.Int32
The zero-based index 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.
Type: Object
An object representing the value for provided column and at specified index or null
either if a value for column and index could not be found or an exception has occurred during type conversion.
This method is intended as an alternative to method GetValue(Int32, Int32, Type) because this method does not throw any exception.
CsvContainer Class
TryGetValue Overload
Plexdata.CsvParser.Processors Namespace
CsvContainer.Exactly
CsvContainer.Culture
CsvContainer.Mappings
CsvContainer.GetValue(Int32, Int32, Type)
CsvContainer.GetObject(String, Type)
TypeConverter.IntoObject(String, Type, Boolean, CultureInfo, CsvMappings)