Required<T>(MultiSelectionPrompt<T>, bool) Method
Sets a value indicating whether or not at least one choice must be selected.
public static MultiSelectionPrompt<T> Required<T>(this MultiSelectionPrompt<T> obj, bool required)
where T : notnull
- Namespace
- Spectre
.Console - Containing Type
- Multi
Selection Prompt Extensions
Parameters
-
T
- The prompt result type.
Parameters
-
MultiSelectionPrompt
<T> obj - The prompt.
- bool required
- Whether or not at least one choice must be selected.