TriStateExtensionsToBoolean Method
Namespace: Ookii.CommandLineAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
public static bool ToBoolean(
	this TriState value,
	bool autoValue
)
<ExtensionAttribute>
Public Shared Function ToBoolean ( 
	value As TriState,
	autoValue As Boolean
) As Boolean
Dim value As TriState
Dim autoValue As Boolean
Dim returnValue As Boolean
returnValue = value.ToBoolean(autoValue)
public:
[ExtensionAttribute]
static bool ToBoolean(
	TriState value, 
	bool autoValue
)
- value  TriState
 - The TriState value to convert.
 - autoValue  Boolean
 - 
            The value to return if value is TriStateAuto.
            
 
Boolean if 
value is 
TriStateTrue;
            
 if 
value is 
TriStateFalse;
            and 
autoValue if 
value is 
TriStateAuto.
            In Visual Basic and C#, you can call this method as an instance method on any object of type 
TriState. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).