NullableTypes Class Library

NullableSingle.ToNullableDecimal Method 

Converts this NullableSingle instance to a NullableDecimal.

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


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


Value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableSingle Class | NullableTypes Namespace