NonSwitchBooleanTryParse(String, NonSwitchBoolean) Method

Tries to convert the specified string 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(
	string? value,
	out NonSwitchBoolean? result
)

Parameters

value  String
The string 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(String, Boolean) method to perform the conversion.

See Also