加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-14 04:09:26 所属栏目:Windows 来源:网络整理
导读:我一直认为.NET中的根命名空间“System”主要用于那些不依赖于特定平台的东西. 我想知道是否有人有任何想法或见解为什么Windows.Forms命名空间在系统而不是微软,因为它似乎在一个平台中相当根深蒂固. (如果可能的话,请不要进行火焰战争或不必要的MS抨击!:))
我一直认为.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.*命名空间中的类.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读