微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

.net – 为什么Windows.Forms在System而不是Microsoft?

我一直认为.NET中的根命名空间“System”主要用于那些不依赖于特定平台的东西.

我想知道是否有人有任何想法或见解为什么Windows.Forms命名空间在系统而不是微软,因为它似乎在一个平台中相当根深蒂固.

(如果可能的话,请不要进行火焰战争或不必要的MS抨击!:))

我在某处读到System.*命名空间用于核心.Net框架的一部分,而Microsoft.*命名空间用于其他“增值”可选附加内容或正在开发的内容.

编辑:

Brad Abrams在他的博客What Does that .NET Namespace Mean: System.* and Microsoft.*中对此进行了讨论

另外,Visual Basic 2005引用.NET 3.0程序员参考:

The Microsoft root namespace contains Microsoft-specific items. In theory,any vendor can implement .Net languages that translate into Intermediate Language (IL) code. If you were to build such a language,the items in the Microsoft namespace would generally not apply to your language. Items in the System namespace … would be as useful to users of your language as they are to programmers who use the Microsoft languages,but the items in the Microsoft namespace would probably not be as helpful.

这意味着如果我要创建一个新的.Net语言,我将能够使用System.Windows.Forms命名空间来创建UI,但我可能没有太多用于Microsoft.*命名空间中的类.

原文地址:https://www.jb51.cc/windows/365306.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐