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
[C#]
public static decimal From(
   NullableDecimal x,
   decimal conventionalNullValue
);

Parameters

x
The NullableDecimal value to convert.
conventionalNullValue
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