CsvRow.GetCellValue method

Version 0.0.2
.NET Framework 4.7
Namespace Skybrud.Csv
Assembly Skybrud.Csv.dll

GetCellValue(int)

Gets the string value of the cell at the specified index.

public string GetCellValue(int index)

Parameters

index int

The index of the cell.

Returns

The string value of the cell.

GetCellValue(int)

Gets the string value of the cell at the specified index.

public T GetCellValue(int index)

Parameters

index int

The index of the cell.

Returns

T

The string value of the cell.

GetCellValue(int, Func<T, TResult>)

Gets the string value of the cell at the specified index, and converts it using callback.

public T GetCellValue(int index, Func<T, TResult> callback)

Parameters

index int

The index of the cell.

callback Func<T, TResult>

The callback function to be used for converting the value.

Returns

T

An instance of representing the value of the cell.

GetCellValue(string)

Gets the string value of the cell with the specified columnName. If multiple columns match columnName, only the value of the first cell will be returned.

public string GetCellValue(string columnName)

Parameters

columnName String

The name of the cell.

Returns

The string value of the cell.

GetCellValue(string)

Gets the string value of the cell with the specified columnName, and converts it to the type of .

public T GetCellValue(string columnName)

Parameters

columnName String

The name of the cell.

Returns

T

An instance of representing the value of the cell.

GetCellValue(string, Func<T, TResult>)

Gets the string value of the cell with the specified columnName, and converts it using callback.

public T GetCellValue(string columnName, Func<T, TResult> callback)

Parameters

columnName String

The name of the cell.

callback Func<T, TResult>

The callback function to be used for converting the value.

Returns

T

An instance of representing the value of the cell.