<?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; resharper</title>
	<atom:link href="http://www.unauthorised-access.com/tag/resharper/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unauthorised-access.com</link>
	<description>Contains Nuts.</description>
	<lastBuildDate>Fri, 02 Jul 2010 17:46:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Resharper and its &#8220;Convert to LINQ expression&#8221;</title>
		<link>http://www.unauthorised-access.com/2010/01/resharper-and-its-convert-to-linq-expression/</link>
		<comments>http://www.unauthorised-access.com/2010/01/resharper-and-its-convert-to-linq-expression/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 13:50:43 +0000</pubDate>
		<dc:creator>Monty</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[c#.net]]></category>
		<category><![CDATA[resharper]]></category>

		<guid isPermaLink="false">http://www.unauthorised-access.com/?p=375</guid>
		<description><![CDATA[I guess im a bit old fashioned, but I like to write code like: public static List&#60;string&#62; CovertLongListToString(IEnumerable&#60;long&#62; param) { List&#60;String&#62; returnList = new List&#60;string&#62;(); foreach (long l in param) { returnList.Add(l.ToString()); } return returnList; } But then resharper 5.0 gives me this lovely option of &#8220;Convert to LINQ Expression&#8221;, and it turns into: public [...]]]></description>
			<content:encoded><![CDATA[<p>I guess im a bit old fashioned, but I like to write code like:</p>
<pre class="brush: csharp;">
public static List&lt;string&gt; CovertLongListToString(IEnumerable&lt;long&gt; param)
 {
 List&lt;String&gt; returnList = new List&lt;string&gt;();

 foreach (long l in param)
 {
 returnList.Add(l.ToString());
 }

 return returnList;
 }
</pre>
<p>But then resharper 5.0 gives me this lovely option of &#8220;Convert to LINQ Expression&#8221;, and it turns into:</p>
<pre class="brush: csharp;">

public static List&lt;string&gt; CovertLongListToString(IEnumerable&lt;long&gt; param)
 {
 return param.Select(l =&gt; l.ToString()).ToList();
 }
</pre>
<p>Thats just brilliant! I LOVE YOU RESHARPER!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unauthorised-access.com/2010/01/resharper-and-its-convert-to-linq-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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; for (int i = 0; i &#60; all.Count; i++) { tagCount.Add(new TagCount(container[i].Count, container[i])); } foreach (Tag tag in container) { tagCount.Add(new [...]]]></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;">

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

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

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

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>
		<item>
		<title>I want my .ForEach(System.Action)!</title>
		<link>http://www.unauthorised-access.com/2008/10/i-want-my-foreachsystemaction/</link>
		<comments>http://www.unauthorised-access.com/2008/10/i-want-my-foreachsystemaction/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 16:38:45 +0000</pubDate>
		<dc:creator>Monty</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#.net]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[IEnumerable]]></category>
		<category><![CDATA[resharper]]></category>

		<guid isPermaLink="false">http://www.unauthorised-access.com/?p=48</guid>
		<description><![CDATA[Well I was adding things to a dictionary today (Because im lazy, I have to store 2 values, and I really cant be bothered with creating a class just for that), and I wanted to run a ForEach(System.Action&#60;T&#62;) on it, because I like doing that on System.Collections.Generic.List&#60;t&#62; &#8211; it works well, so why change what [...]]]></description>
			<content:encoded><![CDATA[<p>Well I was adding things to a dictionary today (Because im lazy, I have to store 2 values, and I really cant be bothered with creating a class just for that), and I wanted to run a ForEach(System.Action&lt;T&gt;) on it, because I like doing that on System.Collections.Generic.List&lt;t&gt; &#8211; it works well, so why change what you know?</p>
<p>But, it turns out Dictionary&lt;TKey, TValue&gt; dosent have a .ForEach. It implements IEnumerable, but it dosent have support for the .ForEach, which is rather strange, since they both do the same thing, but it dosent have the Action&lt;T&gt; method. So I did some digging, and found that .ForEach is a method that belongs to List&lt;T&gt;, and its pretty much the only way to do it (There is a System.Array.Foreach(T[] array, Action&lt;T&gt;) method, but that dosent work with a dictionary.</p>
<p>What I see happening is me extending Dictionary&lt;TKey, TValue&gt; to add a .ForEach (And the other functions that are missing from it, in my opinion at least), because I think that since it implements IEnumerable&lt;T&gt;, it should support .ForEach.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unauthorised-access.com/2008/10/i-want-my-foreachsystemaction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Consider if you actually need a variable&#8230;</title>
		<link>http://www.unauthorised-access.com/2008/06/consider-if-you-actually-need-a-variable/</link>
		<comments>http://www.unauthorised-access.com/2008/06/consider-if-you-actually-need-a-variable/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 17:08:45 +0000</pubDate>
		<dc:creator>Monty</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[c#.net]]></category>
		<category><![CDATA[resharper]]></category>
		<category><![CDATA[simplicity]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.unauthorised-access.com/?p=40</guid>
		<description><![CDATA[Take this scenario, you need to call a function, so you do the following: I basically needed to call GetCustomAttribute(true) (if you know a better way to check custom attributes, please let me know!). But then I had an epiphany. Do I really need the trace and frame objects, or can I just do the [...]]]></description>
			<content:encoded><![CDATA[<p>Take this scenario, you need to call a function, so you do the following:</p>
<p><a href="http://www.unauthorised-access.com/wp-content/uploads/2008/06/windowclipping-21.png"><img class="alignnone size-medium wp-image-41" title="Stack trace example" src="http://www.unauthorised-access.com/wp-content/uploads/2008/06/windowclipping-21.png" alt="" width="270" height="46" /></a></p>
<p>I basically needed to call GetCustomAttribute(true) (if you know a better way to check custom attributes, please let me know!). But then I had an epiphany. Do I really need the trace and frame objects, or can I just do the following:</p>
<p><a href="http://www.unauthorised-access.com/wp-content/uploads/2008/06/windowclipping-22.png"><img class="alignnone size-full wp-image-42" title="Strack Trace 2" src="http://www.unauthorised-access.com/wp-content/uploads/2008/06/windowclipping-22.png" alt="" width="412" height="21" /></a></p>
<p>Which does exactly the same thing, but is shorter, and is easier to read and follow!</p>
<p>I love simplicitiy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unauthorised-access.com/2008/06/consider-if-you-actually-need-a-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing Productivity with Resharper</title>
		<link>http://www.unauthorised-access.com/2007/09/increasing-productivity-with-resharper/</link>
		<comments>http://www.unauthorised-access.com/2007/09/increasing-productivity-with-resharper/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 11:00:23 +0000</pubDate>
		<dc:creator>Monty</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#.net]]></category>
		<category><![CDATA[resharper]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://blog.muntedharalhakim.net/archive/2007/09/09/increasing-productivity-with-resharper.aspx</guid>
		<description><![CDATA[For those people who rely on //TODO: Comments in their code, you should get Resharper! It will greatly improve how you can see TODO statements, among other things: You can customise these options in the Resharper options page: And you can edit the existing ones: It actually works with files you dont even have open, [...]]]></description>
			<content:encoded><![CDATA[<p>For those people who rely on //TODO: Comments in their code, you should get Resharper! It will greatly improve how you can see TODO statements, among other things:</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/IncreasingProductivitywithResharper_A8E1/image_695c3fb4-df89-416e-80bd-18d3b41d6757.png" border="0" alt="Todo Explorer" width="500" height="291" /></p>
<p>You can customise these options in the Resharper options page:</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/IncreasingProductivitywithResharper_A8E1/image_989dc31c-da7e-431f-aec0-2f7627fb3249.png" border="0" alt="image" width="460" height="315" /></p>
<p>And you can edit the existing ones:</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/IncreasingProductivitywithResharper_A8E1/image_88f57841-072c-4eda-8808-eae920033dbb.png" border="0" alt="image" width="442" height="284" /></p>
<p>It actually works with files you dont even have open, unlike Visual Studio .NET&#8217;s Task list &#8211; great for those large projects you have!</p>
<p>If you dont have Resharper, I suggest <a href="http://www.jetbrains.com/" target="_blank">you go grab it</a>.</p>
<div id="0767317B-992E-4b12-91E0-4F059A8CECA8:9870b7d8-3656-4083-8d1e-e4159309b9ed" class="wlWriterSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Visual%20Studio%202005">Visual Studio 2005</a>, <a rel="tag" href="http://technorati.com/tags/Resharper">Resharper</a>, <a rel="tag" href="http://technorati.com/tags/Todo">Todo</a></div>
<p><img src="http://blog.muntedharalhakim.net/aggbug/59.aspx" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unauthorised-access.com/2007/09/increasing-productivity-with-resharper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
