4f30fab5 5912 3b79 c6d3 7a07fa0f52f5 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvContainer.SetValue Method (Object, String, Int32)

Sets provided value at field referenced by header and index.

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

Syntax

C#

public void SetValue(
	Object value,
	string header,
	int index
)

Parameters

 

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

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
SetValue Overload
Plexdata.CsvParser.Processors Namespace
CsvContainer.Culture
CsvContainer.Mappings
CsvContainer.SetValue(TType)(TType, String, Int32)
CsvContainer.TrySetValue(Object, String, Int32)
TypeConverter.IntoString(Object, CultureInfo, CsvMappings)

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