Method overloads resolution and Jon Skeet's Brain Teasers

前端 未结 5 1532
無奈伤痛
無奈伤痛 2020-12-13 06:45

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 resol

5条回答
  •  -上瘾入骨i
    2020-12-13 07:41

    This behaviour is deliberate and carefully designed. The reason is because this choice mitigates the impact of one form of the Brittle Base Class Failure.

    Read my article on the subject for more details.

    http://blogs.msdn.com/ericlippert/archive/2007/09/04/future-breaking-changes-part-three.aspx

提交回复
热议问题