AddChoices<T>(MultiSelectionPrompt<T>, T, Action<IMultiSelectionItem<T>>) Method
Adds a choice.
public static MultiSelectionPrompt<T> AddChoices<T>(this MultiSelectionPrompt<T> obj, T choice, Action<IMultiSelectionItem<T>> configurator)
where T : notnull
- Namespace
- Spectre
.Console - Containing Type
- Multi
Selection Prompt Extensions
Parameters
-
T
- The prompt result type.
Parameters
-
MultiSelectionPrompt
<T> obj - The prompt.
- T choice
- The choice to add.
-
Action
<IMultiSelectionItem <T> > configurator - The configurator for the choice.