Ask<T>(string, T) Method
Displays a prompt to the user with a given default.
public static T Ask<T>(string prompt, T defaultValue)
- Namespace
- Spectre
.Console - Containing Type
- AnsiConsole
Parameters
-
T
- The prompt result type.
Parameters
- string prompt
- The prompt markup text.
- T defaultValue
- The default value.
Returns
- T