예제 #1
0
 public static void Count(ICountable c, int maxCount)
 {//counts up to the specified max and prints each count
     while (c.GetCount() < maxCount)
     {
         c.IncrementCount();
         c.FormatCount();
         Thread.Sleep(500);
     }
     Console.WriteLine();
 }