NullableTypes Class Library

NullableDecimal Explicit NullableTypes.NullableDouble to NullableTypes.NullableDecimal Conversion 

Converts the NullableDouble parameter to a NullableDecimal structure.

[Visual Basic]
returnValue = NullableDecimal.op_Explicit(x)
[C#]
public static explicit operator NullableDecimal(
   NullableDouble x
);

Parameters

x
A NullableDouble to be converted to a NullableDecimal structure.

Return Value

Null if x is Null otherwise a new NullableDecimal structure constructed from the Value of x.

Exceptions

Exception TypeCondition
OverflowExceptionx value is a number that is less than MinValue or greater than MaxValue

-or-

value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableDecimal Class | NullableTypes Namespace