<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DotBert &#187; lamdba expression tree</title>
	<atom:link href="http://dotbert.loedeman.nl/category/lamdba-expression-tree/feed" rel="self" type="application/rss+xml" />
	<link>http://dotbert.loedeman.nl</link>
	<description>.NET thoughts by Bert Loedeman</description>
	<lastBuildDate>Wed, 19 Oct 2011 07:57:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Lambda expressions and lambda expression trees</title>
		<link>http://dotbert.loedeman.nl/lambda-expressions-and-lambda-expression-trees</link>
		<comments>http://dotbert.loedeman.nl/lambda-expressions-and-lambda-expression-trees#comments</comments>
		<pubDate>Tue, 10 Jun 2008 11:35:00 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[expression tree]]></category>
		<category><![CDATA[lambda]]></category>
		<category><![CDATA[lambda expression]]></category>
		<category><![CDATA[lamdba expression tree]]></category>

		<guid isPermaLink="false">http://www.loedeman.net/wordpress/?p=17</guid>
		<description><![CDATA[Lately I had to dive into consequences for a migration from VS 2005 to VS 2008 and I tumbled over lambda expressions and lambda expression trees. Although lambda expressions themselves are quite easy to understand, I had a hard time trying to understand lambda expression trees. However, I found a very sharp explanation on lambda [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I had to dive into consequences for a migration from VS 2005 to VS 2008 and I tumbled over lambda expressions and lambda expression trees. Although lambda expressions themselves are quite easy to understand, I had a hard time trying to understand lambda expression trees.</p>
<p>However, I found a very sharp explanation on lambda expression trees at <a href="http://blogs.msdn.com/charlie/archive/2008/01/31/expression-tree-basics.aspx" target="_blank">Charlie Calvert&#8217;s blog</a>. It helped me a lot getting the right point of view.</p>
<p>In fact, expression trees are not that difficult to understand. It is the people&#8217;s stories which make them hard to understand. One of the mistakes made in relation to expression trees is that they are extendable. Simple: they are not. The only difference is that lambda expressions are compiled at compile time, lambda expression trees not (they are stored tree-wise, as shown below &#8211; that explains their name).</p>
<p style="text-align: center;"><img class="size-full wp-image-128 aligncenter" title="Lambda expression tree" src="http://dotbert1.loedeman.nl/wp-content/uploads/2008/06/LambdaExpressionTree.png" alt="Lambda expressions and lambda expression trees LambdaExpressionTree" width="380" height="688" /></p>
<p>The reason expression trees have an added value lies in the IQueryable&lt;T&gt; interface. As stated by Charlie, that interface has an Expression property. When using the interface, e.g. with LINQ to SQL, the expression tree is generated for the LINQ query, but when it has to be executed it can be translated into the target language (e.g. T-SQL) from the lambda expression tree.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/.net">.net</a> <a rel="tag" href="http://technorati.com/tag/expression+tree">expression tree</a> <a rel="tag" href="http://technorati.com/tag/lambda">lambda</a> <a rel="tag" href="http://technorati.com/tag/lambda+expression">lambda expression</a> <a rel="tag" href="http://technorati.com/tag/lamdba+expression+tree">lamdba expression tree</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/lambda-expressions-and-lambda-expression-trees/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

