NonSwitchBooleanParse(ReadOnlySpanChar) Method

Converts the specified string span to a NonSwitchBoolean value.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public static NonSwitchBoolean Parse(
	ReadOnlySpan<char> value
)

Parameters

value  ReadOnlySpanChar
The string span to convert.

Return Value

NonSwitchBoolean
if value is equivalent to TrueString; if value is equivalent to FalseString.

Remarks

This method uses the BooleanParse(ReadOnlySpanChar) method to perform the conversion.

Exceptions

ArgumentNullExceptionvalue is .
FormatExceptionvalue is not a valid boolean value.

See Also