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