AddChoice<T>(TextPrompt<T>, T) Method
Adds a choice to the prompt.
public static TextPrompt<T> AddChoice<T>(this TextPrompt<T> obj, T choice)
- Namespace
- Spectre
.Console - Containing Type
- TextPromptExtensions
Parameters
-
T
- The prompt result type.
Parameters
-
TextPrompt
<T> obj - The prompt.
- T choice
- The choice to add.