DefaultValue<T>(TextPrompt<T>, T) Method
Sets the default value of the prompt.
public static TextPrompt<T> DefaultValue<T>(this TextPrompt<T> obj, T value)
- Namespace
- Spectre
.Console - Containing Type
- TextPromptExtensions
Parameters
-
T
- The prompt result type.
Parameters
-
TextPrompt
<T> obj - The prompt.
- T value
- The default value.