Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
真的如上所述,我想知道为什么微软将抽象作为抽象类而不是接口发布?
我会对任何见解感兴趣,因为我需要对标准的东西做类似的事情,比如文件和目录的 System.IO 功能,但是我觉得界面会感觉更好?
选择抽象一定有一个很好的理由,除了它更适合他们的程序集命名空间 System.Web.ABSTRACTions 的事实。
谢谢
我相信 Phil(来自 ASP.NET MVC 团队的 Haack)在他的博客上解释了这个决定。看看这篇文章:
抽象基类和接口的版本控制问题