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

Sets the function to create a display string for a given choice.
public static MultiSelectionPrompt<T> UseConverter<T>(this MultiSelectionPrompt<T> obj, Func<T, string> displaySelector) 
    where T : notnull

Parameters

T
The prompt type.

Parameters

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

Returns