NullableTypes Class Library

NullableDouble.ToNullableDecimal Method 

Converts this NullableDouble instance to a NullableDecimal.

[Visual Basic]
Public Function ToNullableDecimal() As NullableDecimal
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.


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


Value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableDouble Class | NullableTypes Namespace