Click or drag to resize

BcfRowGetNullableT Method (String)

Gets the value stored in column with specified columnName.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public Nullable<T> GetNullable<T>(
	string columnName
)
where T : struct, new()

Parameters

columnName
Type: SystemString
The column name.

Type Parameters

T
The not-nullable value type.

Return Value

Type: NullableT
The value stored in column with specified columnName if set; otherwise .
Exceptions
ExceptionCondition
ArgumentNullExceptioncolumnName is .
ArgumentExceptionThe column specified by columnName cannot be found.
InvalidCastExceptionThe ValueType of column with specified columnName is not of type T and not T?.
See Also