mscorlib绝对是.net基类库之一,C#中的每个程序都依赖于它,但它代表什么呢?
在C# Language Specification的ECMA标准中,这个词被提到了4次,没有一个是指它的意思。
发布于 2013-02-25 15:30:14
Microsoft Common Object Runtime Library.
请参阅http://www.danielmoth.com/Blog/mscorlibdll.aspx和What does 'Cor' stand for?
发布于 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",对于一个以英语为母语的人来说,这是一个听起来很愚蠢的名字。
发布于 2013-02-25 15:39:38
它代表
微软的公共对象运行库
它是框架公用库的主要程序集。
它包含以下命名空间:
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 1.1程序集将引用1.1 mscorlib,但将在运行时使用2.0 mscorlib (由于运行时自身的硬编码版本重定向)MSCorlib 2.0单独在GAC中,而1.x版本在框架文件夹https://stackoverflow.com/questions/15061977
复制相似问题