<?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>Head.SmackOnTable(); &#187; delegate</title>
	<atom:link href="http://www.unauthorised-access.com/tag/delegate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unauthorised-access.com</link>
	<description>Contains Nuts.</description>
	<lastBuildDate>Fri, 06 Jan 2012 11:15:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Evolution of looping</title>
		<link>http://www.unauthorised-access.com/2008/11/evolution-of-looping/</link>
		<comments>http://www.unauthorised-access.com/2008/11/evolution-of-looping/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 15:36:15 +0000</pubDate>
		<dc:creator>Monty</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[delegate]]></category>
		<category><![CDATA[lambda expression]]></category>
		<category><![CDATA[resharper]]></category>

		<guid isPermaLink="false">http://www.unauthorised-access.com/?p=53</guid>
		<description><![CDATA[While im writing a new project using vs.net 2008, Resharper cropped up a nice helper, saying I should use a lambda expression on my code, which made me think about how looping has evolved&#8230; Iv always thought lambda&#8217;s were gimmicky, but I do have to admit, they do look fancy and makes things like what [...]]]></description>
			<content:encoded><![CDATA[<p>While im writing a new project using vs.net 2008, Resharper cropped up a nice helper, saying I should use a lambda expression on my code, which made me think about how looping has evolved&#8230;</p>
<pre class="brush: csharp; title: ; notranslate">

for (int i = 0; i &lt; all.Count; i++)
{
tagCount.Add(new TagCount(container[i].Count, container[i]));
}
</pre>
<pre class="brush: csharp; title: ; notranslate">

foreach (Tag tag in container)
{
tagCount.Add(new TagCount(tag.Count, tag));
}
</pre>
<pre class="brush: csharp; title: ; notranslate">

container.ForEach(delegate(Tag tag)
{
tagCount.Add(new TagCount(container.Count, tag));
});
</pre>
<pre class="brush: csharp; title: ; notranslate">

container.ForEach(tag =&gt; tagCount.
Add(new TagCount(container.Count, tag)));
</pre>
<p>Iv always thought lambda&#8217;s were gimmicky, but I do have to admit, they do look fancy and makes things like what im doing easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unauthorised-access.com/2008/11/evolution-of-looping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

