摘要: 委托的Invoke方法用来进行同步调用。同步调用也可以叫阻塞调用,它将阻塞当前线程,然后执行调用,调用完毕后再继续向下进行。同步调用的例子:using System;using System.Threading;public delegate int AddHandler(int a, int b);public class Foo { static void Main() { Console.... 阅读全文
posted @ 2009-10-19 14:46 435银狐 阅读(12205) 评论(12) 推荐(4) 编辑