Invoke和BeginInvoke
执行顺序不一样
private static int newTask(int mms) { //C } private delegate int NewTaskDelegate(int mms); static void Main(string[] args) { //A NewTaskDelegate newTst = newTask; IAsyncResult asyncResult = newTst.BeginInvoke(2000, null, null); //B }
BeginInvoke: A-B-C
Invoke: A-C-B