示例#1
0
        static void Main(string[] args)
        {
            CountTest     c = new CountTest();
            SubscribeTest s = new SubscribeTest(c);

            c.countFunc();
            Console.ReadKey();
        }
示例#2
0
 public SubscribeTest(CountTest c)
 {
     c.countNumCallBack += subFunc;//subscribe
 }