ASP.net MVC v2 - Debugging Model Binding Issues - BUG?

删除回忆录丶 提交于 2019-11-30 04:44:45

Turns out this behavior is by design due to how interface inheritance works. Interfaces do not define implementations, thus ILocation doesn't "inherit" the properties of ILocationSource. Rather, ILocation only defines what a concrete implementation must implement.

For the full details including the section of the CLI (Common Language Infrastructure) spec which defines this behavior, check out: http://haacked.com/archive/2009/11/10/interface-inheritance-esoterica.aspx

I would simply reference to the asp.net mvc2 source code published in codeplex. I did that, it's very straightforward.

It will give you much better understanding when you debugging through the source code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!