NonSwitchBooleanTryParse(ReadOnlySpanChar, NonSwitchBoolean) Method

Tries to convert 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 bool TryParse(
	ReadOnlySpan<char> value,
	out NonSwitchBoolean result
)

Parameters

value  ReadOnlySpanChar
The string span to convert.
result  NonSwitchBoolean
If conversion was successful, receives if value is equivalent to TrueString; if value is equivalent to FalseString.

Return Value

Boolean
if the conversion was successful; otherwise, .

Remarks

This method uses the BooleanTryParse(ReadOnlySpanChar, Boolean) method to perform the conversion.

See Also