<?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>Overrides and Overload Resolution</title><link>http://blogs.msdn.com/nealho/archive/2006/01/19/515173.aspx</link><description>I got an e-mail earlier this week asking a fairly common question regarding C#&amp;rsquo;s overload resolution. Before I launch into a discussion of the actual behavior of the compiler, think about what the output of the following program will be: using System;</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Overload resolution in C#</title><link>http://blogs.msdn.com/nealho/archive/2006/01/19/515173.aspx#530042</link><pubDate>Sat, 11 Feb 2006 08:43:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:530042</guid><dc:creator>Jeffrey's Blog</dc:creator><description /></item><item><title>Why is the blog's subtitle "Not actually a .NET blog"?</title><link>http://blogs.msdn.com/nealho/archive/2006/01/19/515173.aspx#4368833</link><pubDate>Mon, 13 Aug 2007 17:57:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4368833</guid><dc:creator>The Old New Thing</dc:creator><description>&lt;p&gt;CLR Week: A new annual tradition.&lt;/p&gt;
</description></item><item><title>re: Overrides and Overload Resolution</title><link>http://blogs.msdn.com/nealho/archive/2006/01/19/515173.aspx#4369822</link><pubDate>Mon, 13 Aug 2007 19:48:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4369822</guid><dc:creator>CornedBee</dc:creator><description>&lt;p&gt;Correct? Yes. Sensible? Not necessarily.&lt;/p&gt;
&lt;p&gt;As Eric Gunnerson points out, the overload resolution rules (look in the current class, and only if nothing matches go to the parent) are there for the sake of versioning, so that the derived class is protected from changes in the base. I cannot see a way in which this particular detail helps with versioning in any way. If the base's Method changes signature, the override keyword already forces the programmer to update the derived class. If another method is added to base, nothing happens, because the methods exists only in base.&lt;/p&gt;
&lt;p&gt;But not considering a method that appears in derived only adds confusion for the programmer, IMO, and no safety against changes.&lt;/p&gt;
</description></item><item><title>Nullable Problem bei ?berladung | hilpers</title><link>http://blogs.msdn.com/nealho/archive/2006/01/19/515173.aspx#9348583</link><pubDate>Tue, 20 Jan 2009 19:28:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9348583</guid><dc:creator>Nullable Problem bei ?berladung | hilpers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.hilpers.com/286608-nullable-problem-bei-uberladung"&gt;http://www.hilpers.com/286608-nullable-problem-bei-uberladung&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>