NullableTypes Class Library

NullableSingle.ToNullableDecimal Method 

Converts this NullableSingle instance to a NullableDecimal.

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

Return Value

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

Exceptions

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

-or-

Value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableSingle Class | NullableTypes Namespace