NullableTypes Class Library

NullableDecimal Explicit NullableTypes.NullableSingle to NullableTypes.NullableDecimal Conversion 

Converts the NullableSingle parameter to a NullableDecimal structure.

[Visual Basic]
returnValue = NullableDecimal.op_Explicit(x)
public static explicit operator NullableDecimal(
   NullableSingle x


A NullableSingle 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.


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


value is NaN, PositiveInfinity, or NegativeInfinity.

See Also

NullableDecimal Class | NullableTypes Namespace