Click or drag to resize

EAPUtilToDecimal Method (Object, Decimal)

Convert an object to a decimal value handling the case when the object is DBNull. When the object is null, the return value is the value of the defaultValue parameter.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static decimal ToDecimal(
	Object value,
	decimal defaultValue
)

Parameters

value
Type: SystemObject
The object to convert
defaultValue
Type: SystemDecimal
The value to return if the object is DBNull.

Return Value

Type: Decimal
The converted object as a decimal.
See Also