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?
BONUS TIME!
Is this behaviour a result of the C# specification, the CLR implementation, or the Compiler?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…