static void Main(string[] args) { var manager = new EvManager(); var class1 = new Class1(manager); var class2 = new Class2(manager); manager.ExecuteIt(5, 12); }
public Class2(EvManager m) { m.AddDelegate(RealSum); }
public Class1(EvManager m) { m.AddDelegate(FakeSum); }