摘要:
1classProgram2{3staticvoidMain(string[]args)4{5//异步委托方法一6Func<int,int>func=newFunc<int,int>(Square);7IAsyncResultar1=func.BeginInvoke(10,null,null);8while(!ar1.IsCompleted)9Console.WriteLine(func.EndInvoke(ar1));1011//异步委托方法二12IAsyncResultar2=func.BeginInvoke(20,null,null);13ar2.AsyncWai 阅读全文