WrapAround<T>(SelectionPrompt<T>, bool) Method

Sets whether the selection should wrap around when reaching its edges.
public static SelectionPrompt<T> WrapAround<T>(this SelectionPrompt<T> obj, bool shouldWrap = true) 
    where T : notnull
Namespace
Spectre.Console
Containing Type
SelectionPromptExtensions

Parameters

T
The prompt result type.

Parameters

SelectionPrompt<T> obj
The prompt.
bool shouldWrap
Whether the selection should wrap around.

Returns