GetColumn Method
GetColumn<T>(int)
Gets the value of the column by identified by index
Declaration
public T GetColumn<T>(int index)
Parameters
int | index | The index. |
Returns
T | The value of the column. |
Type Parameters
T | The type of the column value. |
Remarks
For performance purposes and to reduce allocations, the column value is deserialized but NOT cached. Avoid getting the value of a column multiple times. Cache it in a local variable instead, if needed.
GetColumn<T>(string)
Gets the value of a column identified by its name.
Declaration
public T GetColumn<T>(string name)
Parameters
string | name | The name of the column. |
Returns
T | The value of the column with the specified name. |
Type Parameters
T | The expected type of the value. |