摘要: 我不会IL,也不想学IL,所以为了测试Lambda表达式编译的原理,只能使用调试进行试验来认识: 第一种情况,当Lambda表达式没有用到函数外的变量时:class MyClass2{ public Action TestLambda() { Action action = () => { Console.WriteLine(DateTime.Now); }; return action; } public static void Test() { MyClass2 c2 ... 阅读全文
posted @ 2009-12-25 14:15 BloodyAngel 阅读(536) 评论(0) 推荐(0) 编辑