Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            TestDelegate testDelegate = new TestDelegate(MethodOne);

            testDelegate += MethodTwo;
            testDelegate += MethodThree;
            testDelegate -= MethodTwo;
            testDelegate.Invoke("Isaac");

            TestDelegate2 testDelegate2 = new TestDelegate2(MethodOne);

            testDelegate2.Invoke("Mpho", 20);
        }