<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Foo Software Society</title>
	<atom:link href="http://fssociety.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fssociety.wordpress.com</link>
	<description>Code, Software Engineering, Programming Languages and more ...</description>
	<lastBuildDate>Thu, 08 Oct 2009 17:55:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='fssociety.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Foo Software Society</title>
		<link>http://fssociety.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://fssociety.wordpress.com/osd.xml" title="Foo Software Society" />
	<atom:link rel='hub' href='http://fssociety.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Intellsense Bug</title>
		<link>http://fssociety.wordpress.com/2009/10/08/intellsense-bug/</link>
		<comments>http://fssociety.wordpress.com/2009/10/08/intellsense-bug/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 17:35:59 +0000</pubDate>
		<dc:creator>hnh12358</dc:creator>
				<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://fssociety.wordpress.com/2009/10/08/intellsense-bug/</guid>
		<description><![CDATA[[Legacy Post from my Spanish blog] Four days ago while I was working on LINQ I found an error of VS2008&#8242;s IntellSense. After notifying it at the Microsoft Connect site, I was ready to post a comment&#160; about this issue. Before we see how to reproduce this error I have to say that I can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fssociety.wordpress.com&amp;blog=9815753&amp;post=8&amp;subd=fssociety&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>[Legacy Post from my Spanish <a href="http://elblogdehoracio.blogspot.com/2008/06/intellsense-bug.html">blog</a>]<br />
Four days ago while I was working on LINQ I found an error of VS2008&#8242;s IntellSense. After notifying it at the <a href="http://connect.microsoft.com">Microsoft Connect</a> site, I was ready to post a comment&nbsp; about this issue. Before we see how to reproduce this error I have to say that I can see it because I read Jon Skeet&#8217;s C# book in the morning.</p>
<p>By definition, it is possible to have an extensor method of extensible type <strong>T</strong> and a static method in <strong>T</strong> that have the same signature. We should remember that an extension method is pure sintactic sugar, the <strong>this</strong> modifier makes the method get tagged with <strong>System.Runtime.CompilerServices.ExtensionAttribute</strong> if it complies with the other rules, thus, this is just a simple method.</p>
<p>It&#8217;s in this situation where IntellSense gets confused. Let&#8217;s reproduce it.</p>
<div style="overflow:scroll;border-right:white 2px ridge;border-top:white 2px ridge;font-size:10pt;border-left:white 2px ridge;border-bottom:white 2px ridge;font-family:consolascourier new;background-color:#eeeeee;margin:10px;padding:10px;">
<pre> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> A
 {
        <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Method(A obj){Console.WriteLine("<span style="color:#8b0000;">instance</span>");}
        <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Foo() { }
 }

 <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">class</span> AHelper
 {
        <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Method(<span style="color:#0000ff;">this</span> A obj) { Console.WriteLine("<span style="color:#8b0000;">extension</span>");}
 }

 <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">class</span> Program
 {
        <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Main()
        {
            A objA = <span style="color:#0000ff;">new</span> A();
            objA.Method();
            Console.Read();
        }
 }</pre>
</div>
<p>At the second instruction of Main method, if you activate the IntellSense&#8217;s engine after you type the <em>punctuator </em>(&#8220;<strong>.</strong>&#8220;)&nbsp; you will see how the Method doesn&#8217;t have the expected icon, and neither does the tooltip beginning with &#8220;(extension)&#8221;:</p>
<p><img src="http://lh4.ggpht.com/hnh12358/SFk3VI16ikI/AAAAAAAAAEI/CQGM4oPwZkA/bug.jpg"> </p>
<p>Once finnish the writing the name we could see how its now recognized as an extensions method by IntellSense: </p>
<p><img src="http://lh3.ggpht.com/hnh12358/SFk3VCX921I/AAAAAAAAAEQ/Q0UPp58jhIw/bug0.jpg"> </p>
<p>If we erase the static method of the class, the extension method is redeemed.<img src="http://lh3.ggpht.com/hnh12358/SFk3VDF10nI/AAAAAAAAAEY/-v5wfu0PLzQ/bug1.jpg">  </p>
<p>See you soon bloggers <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fssociety.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fssociety.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fssociety.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fssociety.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fssociety.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fssociety.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fssociety.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fssociety.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fssociety.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fssociety.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fssociety.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fssociety.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fssociety.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fssociety.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fssociety.wordpress.com&amp;blog=9815753&amp;post=8&amp;subd=fssociety&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fssociety.wordpress.com/2009/10/08/intellsense-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a95130784aec4df2507310a43683425c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hnh12358</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/hnh12358/SFk3VI16ikI/AAAAAAAAAEI/CQGM4oPwZkA/bug.jpg" medium="image" />

		<media:content url="http://lh3.ggpht.com/hnh12358/SFk3VCX921I/AAAAAAAAAEQ/Q0UPp58jhIw/bug0.jpg" medium="image" />

		<media:content url="http://lh3.ggpht.com/hnh12358/SFk3VDF10nI/AAAAAAAAAEY/-v5wfu0PLzQ/bug1.jpg" medium="image" />
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://fssociety.wordpress.com/2009/10/06/hello-world/</link>
		<comments>http://fssociety.wordpress.com/2009/10/06/hello-world/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:41:01 +0000</pubDate>
		<dc:creator>hnh12358</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fssociety.wordpress.com&amp;blog=9815753&amp;post=1&amp;subd=fssociety&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fssociety.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fssociety.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fssociety.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fssociety.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fssociety.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fssociety.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fssociety.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fssociety.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fssociety.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fssociety.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fssociety.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fssociety.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fssociety.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fssociety.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fssociety.wordpress.com&amp;blog=9815753&amp;post=1&amp;subd=fssociety&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fssociety.wordpress.com/2009/10/06/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a95130784aec4df2507310a43683425c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hnh12358</media:title>
		</media:content>
	</item>
	</channel>
</rss>
