<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Exploring Extension methods – potential method invocation problems</title><link>http://blogs.msdn.com/b/erickt/archive/2006/09/12/751406.aspx</link><description>Extension methods are one of the many great new features of C# 3.0. They basically allow you to declare static methods that appear to be instance methods of a type, even if you have no access to the type (sealed classes, etc). The key point is that you</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Exploring Extension methods – potential method invocation problems</title><link>http://blogs.msdn.com/b/erickt/archive/2006/09/12/751406.aspx#4313848</link><pubDate>Fri, 10 Aug 2007 00:38:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4313848</guid><dc:creator>MSDNArchive</dc:creator><description>&lt;p&gt;Ed,&lt;/p&gt;
&lt;p&gt;The rules basically say that the one in the &amp;quot;closest&amp;quot; namespace to you gets called. If two methods are the same distance away, then you should get a compiler error. All part of the learning curve around these new techniques...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Erick&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4313848" width="1" height="1"&gt;</description></item><item><title>re: Exploring Extension methods – potential method invocation problems</title><link>http://blogs.msdn.com/b/erickt/archive/2006/09/12/751406.aspx#4310198</link><pubDate>Thu, 09 Aug 2007 15:50:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4310198</guid><dc:creator>Ed</dc:creator><description>&lt;p&gt;What about ambiguous extensions? You make one called 'In' and a developer gets it via a using statement (e.g. using EricksExtensions)&lt;/p&gt;
&lt;p&gt;I make an extension called 'In' and a developer wants to use that also.&lt;/p&gt;
&lt;p&gt;(e.g. using EdsExtensions)&lt;/p&gt;
&lt;p&gt;obj.In is now ambiguous.&lt;/p&gt;
&lt;p&gt;How to tell the which one to resolve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4310198" width="1" height="1"&gt;</description></item><item><title>C# 3.0 &amp;amp; LINQ - Extensions Methods</title><link>http://blogs.msdn.com/b/erickt/archive/2006/09/12/751406.aspx#751609</link><pubDate>Wed, 13 Sep 2006 08:30:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:751609</guid><dc:creator>Humble Abode</dc:creator><description>&amp;amp;amp;quot;Extension methods are one of the many great new features of C# 3.0. They basically allow you to&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=751609" width="1" height="1"&gt;</description></item></channel></rss>