Ask<T>(IAnsiConsole, string, CultureInfo) Method

Displays a prompt to the user.
public static T Ask<T>(this IAnsiConsole console, string prompt, CultureInfo culture)
Namespace
Spectre.Console
Containing Type
AnsiConsoleExtensions

Parameters

T
The prompt result type.

Parameters

IAnsiConsole console
The console.
string prompt
The prompt markup text.
CultureInfo culture
Specific CultureInfo to use when converting input.

Returns

T