日期:2014-05-17 浏览次数:21174 次
for (int i = 0; i < 2; i++) { Thread t = new Thread( delegate() { Console.WriteLine(i); }); t.Start(); }
2 2
0 1
for (int i = 0; i < 2; i++) { int j = i; Thread t = new Thread( delegate(obj) { &