//Main_7_4_1
        public static void Main()
        {
            MyClassWithCallback mc = new MyClassWithCallback();
            IMyInterface mi = new MyBaseClass();

            mc.AddCallback(mi);
            mc.DoWork();
            mc.RemoveCallback();
        }
Beispiel #2
0
        public static void Main()//Main_7_4_1
        {
            MyClassWithCallback mc = new MyClassWithCallback();
            IMyInterface        mi = new MyBaseClass();

            mc.AddCallback(mi);
            mc.DoWork();
            mc.RemoveCallback();
        }