NullableTypes Class Library

NullableBoolean.Parse Method 

Converts the specified String representation of a logical value to its NullableBoolean equivalent.

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

Parameters

s
The String to be converted.

Return Value

A NullableBoolean structure containing the parsed value.

Exceptions

Exception TypeCondition
ArgumentNullExceptions is a null reference (Nothing in Visual Basic).
FormatExceptionsis not equivalent to TrueString or FalseString or s does not consist solely of an optional negative sign followed by a sequence of digits ranging from 0 to 9 or s represents a number less than MinValue or greater than MaxValue.

See Also

NullableBoolean Class | NullableTypes Namespace