NullableTypes Class Library

NullConvert.From Method (NullableDecimal, Decimal)

Converts the specified NullableDecimal value to an equivalent Decimal value using a conventional Decimal value to represent the Null value.

[Visual Basic]
Overloads Public Shared Function From( _
   ByVal x As NullableDecimal, _
   ByVal conventionalNullValue As Decimal _
) As Decimal
public static decimal From(
   NullableDecimal x,
   decimal conventionalNullValue


The NullableDecimal value to convert.
The Decimal value that conventionally represent the null value.

Return Value

conventionalNullValue if x is Null otherwise the Value of x.

See Also

NullConvert Class | NullableTypes.HelperFunctions Namespace | NullConvert.From Overload List