NullableTypes Class Library

NullableDecimal Explicit NullableTypes.NullableString to NullableTypes.NullableDecimal Conversion 

Converts the specified NullableString parameter to a NullableDecimal structure.

[Visual Basic]
returnValue = NullableDecimal.op_Explicit(x)
[C#]
public static explicit operator NullableDecimal(
   NullableString x
);

Parameters

x
The NullableString to be converted.

Return Value

Null if x is Null otherwise a new NullableDecimal structure containing the parsed value.

Exceptions

Exception TypeCondition
FormatExceptionx does not consist solely of an optional sign followed by a sequence of digits ranging from 0 to 9 and optionally a culture-specific decimal point symbol followed by a sequence of digits ranging from 0 to 9.
OverflowExceptionx represents a number less than MinValue or greater than MaxValue.

See Also

NullableDecimal Class | NullableTypes Namespace