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
public static NullableSingle Parse(
   string s


The String to be converted.

Return Value

A NullableSingle structure containing the parsed value.


The s parameter can contain PositiveInfinitySymbol, NegativeInfinitySymbol and NaNSymbol.


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