Brecham.Obex — An OBEX library for the .NET Framework

MenuKeyboardInput.GetCmdLineIsYesBlankIs Method (Boolean, String)

Gets a Yes/No input from the specified input String. If no, or invalid, input is provided, returns assume.

[Visual Basic]
Overloads Public Shared Function GetCmdLineIsYesBlankIs( _
   ByVal assume As Boolean, _
   ByVal input As String _
) As Boolean
[C#]
public static bool GetCmdLineIsYesBlankIs(
   bool assume,
   string input
);

Parameters

assume
What value to return on empty, or invalid, input.
input
The input as a String.

Return Value

true for yes, false for no.

See Also

MenuKeyboardInput Class | Brecham.Obex.Net Namespace | MenuKeyboardInput.GetCmdLineIsYesBlankIs Overload List