Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Instantiate the delegate.
            del_invoca handler = DelegateMethod;

            // Call the delegate.
            handler("Hello World");


            //O delegado também pode ser chamado usando o método.invoke.
            handler.Invoke("Ali Asad");

            List <del_Calculate> function = new List <del_Calculate>();

            Console.ReadKey();
        }