Beispiel #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();
        }
 public void DelegateTest()
 {
     DelegateDemo.Main();
 }
Beispiel #3
0
 public void DelegateTest()
 {
     DelegateDemo.Demo();
 }