Пример #1
0
        //Main_7_4_1
        public static void Main()
        {
            MyClassWithCallback mc = new MyClassWithCallback();
            IMyInterface mi = new MyBaseClass();

            mc.AddCallback(mi);
            mc.DoWork();
            mc.RemoveCallback();
        }
Пример #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();
        }