Rick van den Bosch - Blog

... on .NET, software architecture, software development and whatnot

Unexpected behaviour when calling overriden method

Since not too long ago, I joined the MSDN Forums. The MSDN Forums is a big community where lots of knowledge is passed around. I recommend joining.

Yesterday I ran into an interesting post. It's about an overriding method that exactly seems to match the call, but doesn't get called. In stead, the base method is called... Apparently this is because of override-resolution starting at the base working its way up, and a method declaration that matches more than you would think it does.

You can find the thread here.

Comments

P.J. van de Sande said:

On the C# Connectionlist voor MVP's and some other invited people there is a great discussion going on that goes much deeper.

Meybe I can post it public somewhere when it is finished. I will ask for it.
# June 30, 2006 4:48 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)