摘要:
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
阅读全文
posted @ 2009-02-27 17:45
guozili
阅读(806)
推荐(0)
编辑