Ejemplo n.º 1
0
 public static void count(Countable c, int maxCount)
 {
     for (int i = 0; i < maxCount; i++)
     {
         c.incrementCount();
         Console.WriteLine(c.getCountString() + " " + c.GetType().ToString().Split('.')[1]);
     }
 }
Ejemplo n.º 2
0
        public static void count(Countable c, int maxCount)
        {
            for (int i = 0; i < maxCount; i++)
            {
                c.incrementCount();
                c.getCount();

                Console.WriteLine(c.getCountString());
            }
        }