NullableTypes Class Library

NullableDecimal.Parse Method 

Converts the specified String representation of a number to its NullableDecimal equivalent.

[Visual Basic]
Public Shared Function Parse( _
   ByVal s As String _
) As NullableDecimal
[C#]
public static NullableDecimal Parse(
   string s
);

Parameters

s
The String to be converted.

Return Value

A NullableDecimal structure containing the parsed value.

Exceptions

Exception TypeCondition
ArgumentNullExceptions is a null reference (Nothing in Visual Basic).
FormatExceptions 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.
OverflowExceptions represents a number less than MinValue or greater than MaxValue.

See Also

NullableDecimal Class | NullableTypes Namespace