public static void Function1() { //Create a delegate to Function2 FooBarDelegate functionPointer = new FooBarDelegate(Function2); //Call it functionPointer("bla"); }
public void ActionDelegate(FooBarDelegate action, FooBarDelegate postaction) { _action = action; _postaction = postaction; Thread t = new Thread(ejecutar); t.SetApartmentState(ApartmentState.STA); t.Start(); }