コード例 #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]);
     }
 }
コード例 #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());
            }
        }
コード例 #3
0
        public static void count(Countable NumCount, int topNum)
        {
            for (int i = 0; i < topNum; i++)
            {
                NumCount.incementCount();
                NumCount.getCount();

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