<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Extension Methods in .NET 2.0</title>
	<atom:link href="http://kohari.org/2008/04/04/extension-methods-in-net-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://kohari.org/2008/04/04/extension-methods-in-net-20/</link>
	<description>Rambling and occasional wisdom from Nate Kohari</description>
	<lastBuildDate>Wed, 01 Sep 2010 18:45:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: .net 3.0 &#8211; Extension Methods &#171; .net and everything else&#8230;.</title>
		<link>http://kohari.org/2008/04/04/extension-methods-in-net-20/comment-page-1/#comment-2786</link>
		<dc:creator>.net 3.0 &#8211; Extension Methods &#171; .net and everything else&#8230;.</dc:creator>
		<pubDate>Tue, 09 Mar 2010 12:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/?p=84#comment-2786</guid>
		<description>[...] Note: Extension methods are not natively supported in .net 2.0. To do so you have to make some changes as explained in this nice article. [...]</description>
		<content:encoded><![CDATA[<p>[...] Note: Extension methods are not natively supported in .net 2.0. To do so you have to make some changes as explained in this nice article. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Pool</title>
		<link>http://kohari.org/2008/04/04/extension-methods-in-net-20/comment-page-1/#comment-105</link>
		<dc:creator>Joe Pool</dc:creator>
		<pubDate>Fri, 26 Jun 2009 17:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/?p=84#comment-105</guid>
		<description>I&#039;ve got this piece of C# 3.0 that I&#039;m trying to run under C# 2.0:

static class FormExtensions {
  static public void UIThread(this Form form, MethodInvoker code) {
    if (form.InvokeRequired) {
      form.Invoke(code);
      return;
    }
    code.Invoke();
  }
}

I added your helpful code snippet above the namespace for my project, but neither Intelliscense nor the compiler would allow it.

The key problem here is finding out how to use &quot;this Form form&quot;.

Am I using your snippet incorrectly or is your solution not relevant?

Thanks,
Joe</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got this piece of C# 3.0 that I&#8217;m trying to run under C# 2.0:</p>
<p>static class FormExtensions {<br />
  static public void UIThread(this Form form, MethodInvoker code) {<br />
    if (form.InvokeRequired) {<br />
      form.Invoke(code);<br />
      return;<br />
    }<br />
    code.Invoke();<br />
  }<br />
}</p>
<p>I added your helpful code snippet above the namespace for my project, but neither Intelliscense nor the compiler would allow it.</p>
<p>The key problem here is finding out how to use &#8220;this Form form&#8221;.</p>
<p>Am I using your snippet incorrectly or is your solution not relevant?</p>
<p>Thanks,<br />
Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Henderson</title>
		<link>http://kohari.org/2008/04/04/extension-methods-in-net-20/comment-page-1/#comment-104</link>
		<dc:creator>Alex Henderson</dc:creator>
		<pubDate>Tue, 22 Apr 2008 22:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/?p=84#comment-104</guid>
		<description>I&#039;ve been doing this for a while now using LinqBridge:

http://www.albahari.com/nutshell/linqbridge.html

Only thing I can say is that Resharper 4 EAP doesn&#039;t seem to believe me and attempts to restructure my methods into Enumerable.Where(...) instead when doing code cleanup etc.

Other then that it&#039;s all good :)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been doing this for a while now using LinqBridge:</p>
<p><a href="http://www.albahari.com/nutshell/linqbridge.html" rel="nofollow">http://www.albahari.com/nutshell/linqbridge.html</a></p>
<p>Only thing I can say is that Resharper 4 EAP doesn&#8217;t seem to believe me and attempts to restructure my methods into Enumerable.Where(&#8230;) instead when doing code cleanup etc.</p>
<p>Other then that it&#8217;s all good :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
