Ejemplo n.º 1
0
 /// <summary>
 /// Prompts the user to input an double value.
 /// </summary>
 /// <param name="options">The prompt options to provide to the user for input.</param>
 /// <param name="result">The result of the user input.</param>
 public static bool PromptDouble(PromptOptions options, out double result) => double.TryParse(Prompt(options), out result);
Ejemplo n.º 2
0
 /// <summary>
 /// Prompts the user to input an integer value.
 /// </summary>
 /// <param name="options">The prompt options to provide to the user for input.</param>
 /// <param name="result">The result of the user input.</param>
 public static bool PromptInt(PromptOptions options, out int result) => int.TryParse(Prompt(options), out result);