NullableTypes Class Library

NullableString.ToNullableDecimal Method 

Converts this NullableString instance to a NullableDecimal.

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

Return Value

A NullableDecimal that is Null if this NullableString is Null otherwise a NullableDecimal whose Value equals the number represented by this NullableString.

Exceptions

Exception TypeCondition
FormatException this NullableString instance is not of the correct format.
OverflowException this NullableString instance represents a number less than MinValue or greater than MaxValue.

See Also

NullableString Class | NullableTypes Namespace | Parse