Contains extension methods for ConfirmationPrompt.
Methods
public static ConfirmationPrompt HideChoices(ConfirmationPrompt obj)
Hides choices.
Parameters:
obj (ConfirmationPrompt)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt HideDefaultValue(ConfirmationPrompt obj)
Hides the default value.
Parameters:
obj (ConfirmationPrompt)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt InvalidChoiceMessage(ConfirmationPrompt obj, string message)
Sets the "invalid choice" message for the prompt.
Parameters:
obj (ConfirmationPrompt)message (string)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt No(ConfirmationPrompt obj, char character)
Sets the character to interpret as "no".
Parameters:
obj (ConfirmationPrompt)character (char)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt RequireEnter(ConfirmationPrompt obj, bool require = true)
Sets whether or not the enter key is required after input.
Parameters:
obj (ConfirmationPrompt)require (bool)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt ShowChoices(ConfirmationPrompt obj, bool show)
Show or hide choices.
Parameters:
obj (ConfirmationPrompt)show (bool)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt ShowChoices(ConfirmationPrompt obj)
Shows choices.
Parameters:
obj (ConfirmationPrompt)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt ShowDefaultValue(ConfirmationPrompt obj, bool show)
Show or hide the default value.
Parameters:
obj (ConfirmationPrompt)show (bool)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt ShowDefaultValue(ConfirmationPrompt obj)
Shows the default value.
Parameters:
obj (ConfirmationPrompt)Returns:
The same instance so that multiple calls can be chained.
public static ConfirmationPrompt Yes(ConfirmationPrompt obj, char character)
Sets the character to interpret as "yes".
Parameters:
obj (ConfirmationPrompt)character (char)Returns:
The same instance so that multiple calls can be chained.