четверг, 22 марта 2012 г.

Expression firstArg = Expression.Constant(2);
Expression secondArg = Expression.Constant(3);
Expression add = Expression.Add(firstArg, secondArg);
Func compiled = Expression.Lambda>(add).Compile();
Console.WriteLine(compiled());

Arguably listing 9.7 is one of the most convoluted ways of printing out “5” that you
could ask for.

Комментариев нет:

Отправить комментарий