Method overloads resolution and Jon Skeet's Brain Teasers

Posted by runrunraygun on Stack Overflow See other posts from Stack Overflow or by runrunraygun
Published on 2010-04-30T12:40:24Z Indexed on 2010/04/30 14:27 UTC
Read the original article Hit count: 424

Jon's Brain Teasers

Here Be Spoilers...

I'm looking at the answer to #1, and I must admit I never knew this was the case in overload resolution. But why is this the case. In my tiny mind Derived.Foo(int) seems like the logical route to go down.

What is the logic behind this design decision?

© Stack Overflow or respective owner

Related posts about c#

Related posts about operator-overloading