ConfirmationPromptExtensions

Contains extension methods for .

Contains extension methods for ConfirmationPrompt.

Methods

public static ConfirmationPrompt HideChoices(ConfirmationPrompt obj)

Hides choices.

Parameters:

obj (ConfirmationPrompt)
The prompt.

Returns:

The same instance so that multiple calls can be chained.

public static ConfirmationPrompt HideDefaultValue(ConfirmationPrompt obj)

Hides the default value.

Parameters:

obj (ConfirmationPrompt)
The prompt.

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)
The prompt.
message (string)
The "invalid choice" message.

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)
The confirmation prompt.
character (char)
The character to interpret as "no".

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)
The confirmation prompt.
require (bool)
Whether or not the enter key is required after input.

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)
The prompt.
show (bool)
Whether or not the choices should be visible.

Returns:

The same instance so that multiple calls can be chained.

public static ConfirmationPrompt ShowChoices(ConfirmationPrompt obj)

Shows choices.

Parameters:

obj (ConfirmationPrompt)
The prompt.

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)
The prompt.
show (bool)
Whether or not the default value should be visible.

Returns:

The same instance so that multiple calls can be chained.

public static ConfirmationPrompt ShowDefaultValue(ConfirmationPrompt obj)

Shows the default value.

Parameters:

obj (ConfirmationPrompt)
The prompt.

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)
The confirmation prompt.
character (char)
The character to interpret as "yes".

Returns:

The same instance so that multiple calls can be chained.