AddChoices<T>(SelectionPrompt<T>, IEnumerable<T>) Method

Adds multiple choices.
public static SelectionPrompt<T> AddChoices<T>(this SelectionPrompt<T> obj, IEnumerable<T> choices) 
    where T : notnull
Namespace
Spectre.Console
Containing Type
SelectionPromptExtensions

Parameters

T
The prompt result type.

Parameters

SelectionPrompt<T> obj
The prompt.
IEnumerable<T> choices
The choices to add.

Returns