摘要: 第一种:.Net 3.5 代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 闭包{ class Program { static void Main(string[] args) { ListAction arr = new ListAction(); for (int i = 0; i 3; i++) { arr.Add(()={Console.WriteLine(i);}); } foreach (var item in arr) { 阅读全文
posted @ 2010-08-01 14:39 再快一点 阅读(420) 评论(0) 推荐(0) 编辑