AddChoices<T>(SelectionPrompt<T>, T[]) Method
Adds multiple choices.
public static SelectionPrompt<T> AddChoices<T>(this SelectionPrompt<T> obj, params T[] choices)
where T : notnull
- Namespace
- Spectre
.Console - Containing Type
- Selection
Prompt Extensions
Parameters
-
T
- The prompt result type.
Parameters
-
SelectionPrompt
<T> obj - The prompt.
- T[] choices
- The choices to add.