UseConverter<T>(SelectionPrompt<T>, Func<T, string>) Method

Sets the function to create a display string for a given choice.
public static SelectionPrompt<T> UseConverter<T>(this SelectionPrompt<T> obj, Func<T, string> displaySelector) 
    where T : notnull
Namespace
Spectre.Console
Containing Type
SelectionPromptExtensions

Parameters

T
The prompt type.

Parameters

SelectionPrompt<T> obj
The prompt.
Func<T, string> displaySelector
The function to get a display string for a given choice.

Returns