我喜欢它的这一特色: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