示例#1
0
        static void Main(string[] args)
        {
            var manager = new EvManager();
            var class1  = new Class1(manager);
            var class2  = new Class2(manager);

            manager.ExecuteIt(5, 12);
        }
示例#2
0
 public Class2(EvManager m)
 {
     m.AddDelegate(RealSum);
 }
示例#3
0
 public Class1(EvManager m)
 {
     m.AddDelegate(FakeSum);
 }