首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mscorlib代表什么?

mscorlib代表什么?
EN

Stack Overflow用户
提问于 2013-02-25 15:25:19
回答 3查看 162.1K关注 0票数 81

mscorlib绝对是.net基类库之一,C#中的每个程序都依赖于它,但它代表什么呢?

C# Language Specification的ECMA标准中,这个词被提到了4次,没有一个是指它的意思。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2013-02-25 15:30:14

Microsoft Common Object Runtime Library.

请参阅http://www.danielmoth.com/Blog/mscorlibdll.aspxWhat does 'Cor' stand for?

票数 79
EN

Stack Overflow用户

发布于 2013-02-25 15:26:49

Microsoft Core Library (它们是一切事物的核心)。

你可能更喜欢一个更“按摩式”的解释:

当微软第一次开始研究.NET框架时,MSCorLib.dll是微软公共对象运行库的首字母缩写。一旦MSCorLib.dll开始标准化公共对象运行库和部分公共对象运行库,MSCorLib.dll就正式成为多语言标准公共对象运行库的缩写。

来自http://weblogs.asp.net/mreynolds/archive/2004/01/31/65551.aspx

大约在1999年,在我个人记忆中,.Net被称为“很酷”,所以我对这个派生有点怀疑。我从来没有听过它叫"COR",对于一个以英语为母语的人来说,这是一个听起来很愚蠢的名字。

票数 42
EN

Stack Overflow用户

发布于 2013-02-25 15:39:38

它代表

微软的公共对象运行库

它是框架公用库的主要程序集。

它包含以下命名空间:

代码语言:javascript
复制
 System
 System.Collections
 System.Configuration.Assemblies
 System.Diagnostics
 System.Diagnostics.SymbolStore
 System.Globalization
 System.IO
 System.IO.IsolatedStorage
 System.Reflection
 System.Reflection.Emit
 System.Resources
 System.Runtime.CompilerServices
 System.Runtime.InteropServices
 System.Runtime.InteropServices.Expando
 System.Runtime.Remoting
 System.Runtime.Remoting.Activation
 System.Runtime.Remoting.Channels
 System.Runtime.Remoting.Contexts
 System.Runtime.Remoting.Lifetime
 System.Runtime.Remoting.Messaging
 System.Runtime.Remoting.Metadata
 System.Runtime.Remoting.Metadata.W3cXsd2001
 System.Runtime.Remoting.Proxies
 System.Runtime.Remoting.Services
 System.Runtime.Serialization
 System.Runtime.Serialization.Formatters
 System.Runtime.Serialization.Formatters.Binary
 System.Security
 System.Security.Cryptography
 System.Security.Cryptography.X509Certificates
 System.Security.Permissions
 System.Security.Policy
 System.Security.Principal
 System.Text
 System.Threading
 Microsoft.Win32 

关于MSCorlib的有趣信息:

  • .NET 2.0程序集将引用并使用2.0 mscorlib.The .NET 1.1程序集将引用1.1 mscorlib,但将在运行时使用2.0 mscorlib (由于运行时自身的硬编码版本重定向)
  • 在GAC中只有一个版本,即使您在计算机上安装了1.1框架,您也无法在GAC上找到1.1版本。如果有人能解释为什么MSCorlib 2.0单独在GAC中,而1.x版本在框架文件夹
  • 中,那就太好了。在你的应用程序/ web.config中进行配置设置,可以强制应用程序加载不同的运行时吗?您不能通过ConfigurationFile中的设置来选择CLR版本-此时,CLR已经在运行,并且每个进程只能有一个。选择CLR后,将立即加载适用于该CLR的MSCorlib。
票数 36
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15061977

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档