AddChoiceGroup<T>(SelectionPrompt<T>, T, T[]) Method

Adds multiple grouped choices.
public static SelectionPrompt<T> AddChoiceGroup<T>(this SelectionPrompt<T> obj, T group, params T[] choices) 
    where T : notnull
Namespace
Spectre.Console
Containing Type
SelectionPromptExtensions

Parameters

T
The prompt result type.

Parameters

SelectionPrompt<T> obj
The prompt.
T group
The group.
T[] choices
The choices to add.

Returns