71d0dee8 0b19 9139 ee46 192bc70a17ea - akesseler/Plexdata.CsvParser GitHub Wiki

CsvContainer.TrySetValue(TType) Method (TType, Int32, Int32)

Tries to set provided value of type TType at field referenced by column and index.

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

Syntax

C#

public bool TrySetValue<TType>(
	TType value,
	int column,
	int index
)

Parameters

 

value
Type: TType
The value to be set at provided column and index.
column
Type: System.Int32
The zero-based index of affected column.
index
Type: System.Int32
The zero-based index of affected row.

Type Parameters

 

TType
The type to convert the value into a string.

Return Value

Type: Boolean
True on success and false on an exception caught.

Remarks

First of all, provided value is converted into its string representation. As next this method tries to change current value in field referenced by provided column and index. The content remains unchanged if either the column or the index is out of range.

See Also

Reference

CsvContainer Class
TrySetValue Overload
Plexdata.CsvParser.Processors Namespace
CsvContainer.Culture
CsvContainer.Mappings
CsvContainer.SetValue(TType)(TType, Int32, Int32)
CsvContainer.SetValue(Object, Int32, Int32)
TypeConverter.IntoString(Object, CultureInfo, CsvMappings)

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