8 // public static char Query(string msg, string selections, char defaultSelection)
\r
10 // Console.Write(msg);
\r
11 // string response = Console.ReadLine();
\r
13 // if (response.Length < 1) return defaultSelection;
\r
14 // int resNum = selections.ToLower().IndexOf(response[0]);
\r
15 // if (resNum < 0 || resNum >= selections.Length) {
\r
16 // return Query(msg, selections, defaultSelection);
\r
18 // return selections[resNum];
\r
22 public static bool Confirm(string msg, bool defaultSelection)
\r
25 string response = Console.ReadLine();
\r
27 switch (response.ToLower())
\r
34 return defaultSelection;
\r