Ejemplo n.º 1
0
        public static void Function1()
        {
            //Create a delegate to Function2
            FooBarDelegate functionPointer = new FooBarDelegate(Function2);

            //Call it
            functionPointer("bla");
        }
Ejemplo n.º 2
0
        public void ActionDelegate(FooBarDelegate action, FooBarDelegate postaction)
        {
            _action     = action;
            _postaction = postaction;

            Thread t = new Thread(ejecutar);

            t.SetApartmentState(ApartmentState.STA);

            t.Start();
        }