Generating Dynamic Methods with Expression Trees in Visual Studio 2010
Posted by: C# Frequently Asked Questions,
on 14 Sep 2009 |
View original | Bookmarked: 0 time(s)
Expression trees first appeared in Visual Studio 2008, where they were mainly used by LINQ providers. You can use expression trees to represent code in a tree-like format, where each node is an expression. You can also convert expression trees into compiled code and run it. This transformation enables dynamic modification of executable code as well as the execution of LINQ queries in various databases and the creation of dynamic queries. Expression trees in Visual Studio 2008 are explained in Charlie...