Thread t2 = new Thread(() => { for (int i = 1; i <= 10; i++) { this.BeginInvoke(new Action(() => { progressBar1.Value = i * 10; })); Thread.Sleep(1000); } }); t2.IsBackground = true; t2.Start();
多线程下的 Lambda表达式
原文:http://www.cnblogs.com/chengulv/p/4359572.html