NullableTypes Class Library

NullableDouble.ToNullableDecimal Method 

Converts this NullableDouble instance to a NullableDecimal.

[Visual Basic]
Public Function ToNullableDecimal() As NullableDecimal
[C#]
public NullableDecimal ToNullableDecimal();

Return Value

A NullableDecimal that is Null if this NullableDouble is Null otherwise a NullableDecimal whose Value equals the Value of this instance.

Exceptions

Exception TypeCondition
OverflowException This NullableDoubleValue is a number that is less than MinValue or greater than MaxValue

-or-

Value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableDouble Class | NullableTypes Namespace