示例#1
0
 /// <summary>
 /// Input correct Brend for Tracks
 /// </summary>
 /// <param name="brend"></param>
 /// <returns></returns>
 public static TrackBrend Input(out TrackBrend brend)
 {
     while (true)
     {
         if (TrackBrend.TryParse(Console.ReadLine(), true, out brend))
         {
             return(brend);
         }
         Console.WriteLine("Enter correct brend:");
         Console.WriteLine($"Variants : MAZ, BelAZ, ERF, Dongfeng, Volvo");
     }
 }