NullableTypes Class Library

NullableSingle.Parse Method 

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

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

Parameters

s
The String to be converted.

Return Value

A NullableSingle structure containing the parsed value.

Remarks

The s parameter can contain PositiveInfinitySymbol, NegativeInfinitySymbol and NaNSymbol.

Exceptions

Exception TypeCondition
ArgumentNullExceptions is a null reference (Nothing in Visual Basic).
FormatExceptions s is not a number in a valid format.
OverflowExceptions represents a number less than MinValue or greater than MaxValue.

See Also

NullableSingle Class | NullableTypes Namespace | Parse