GetValue<T>(DataRow, string) Method
Gets the value of a specified column in the DataRow, converted to the specified type.
Namespace
DbSyncKit.DB.Extensions
Containing Type
DataRowExtensions

Syntax

public static T GetValue<T>(this DataRow row, string columnName)

Type Parameters

Name Description
T The type to which the column value should be converted.

Parameters

Name Type Description
row DataRow The DataRow from which to retrieve the value.
columnName string The name of the column.

Return Value

Type Description
T The value of the specified column, converted to the specified type.