Пример #1
0
        public static void Demo()
        {
            Procedure someProcs = null;

            someProcs += new Procedure(DelegateDemo.Method1);
            someProcs += new Procedure(Method2);  // Example with omitted class name

            DelegateDemo demo = new DelegateDemo();

            someProcs += new Procedure(demo.Method3);
            someProcs();
        }
Пример #2
0
 public void DelegateTest()
 {
     DelegateDemo.Main();
 }
Пример #3
0
 public void DelegateTest()
 {
     DelegateDemo.Demo();
 }