C#3.0LINQ的新下载

    技术2022-05-11  19

    原文: New drop of C# 3.0/LINQ

    下载地址:http://www.microsoft.com/downloads/details.aspx?familyid=1e902c21-340c-4d13-9f04-70eb5e3dceea&displaylang=en

    我喜欢它的这一特色:LambdaExpression.Compile

    Expression > expr = a => a + 3; Console.WriteLine(expr); // prints "a => Add(a, 3)" Func func = expr.Compile(); // LCG's an MSIL method from the expr Console.WriteLine(func(4)); // prints "7" 这些代码等同于 (define expr '(lambda (a) (+ a 3))) (display expr) (define func (eval expr (scheme-report-environment 5))) (display (func 4))

    Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1438370


    最新回复(0)