摘要:
delegate void CallBack(ref int result); class Program { public static void Main(string[] args) { int restut = -1; CallBack cb = new CallBack(Call); cb.BeginInvoke(ref restut, null, null);//异步 while (restut != 0) { Thread.Sleep(200); } Console.Read(); } public static void Call(ref int res) { Thread.. 阅读全文
posted @ 2011-09-19 14:02 qianyz 阅读(217) 评论(1) 推荐(0) 编辑