Exemple #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);
        }
Exemple #2
0
 public Class2(EvManager m)
 {
     m.AddDelegate(RealSum);
 }
Exemple #3
0
 public Class1(EvManager m)
 {
     m.AddDelegate(FakeSum);
 }