mscorlib.dll中和放大器; System.dll中 [英] mscorlib.dll & System.dll

查看:283
本文介绍了mscorlib.dll中和放大器; System.dll中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么MS最初作出维持这两个单独的核心库的决定吗?也许他们脑子里想一些扩展性的问题,但现在我从来没有看到任何类型的,不需要两者的应用程序。没有人对此有什么内幕消息?这不是真的很重要,但一直在我的脑海里好几年了。

Why did MS originally make the decision to maintain these two separate core libs? Maybe they had some scalability issue in mind, but nowadays I never see an application, of any type, that doesn't need both. Does anyone have any inside information on this? It's not really important, but been on my mind for years.

PS。我知道什么是在这两个库,我知道其中的差别 - 我的反射 :)一个大风扇只是想知道实际使用两个分离了。

PS. I know what's in the two libs, I know the difference - I'm a big fan of Reflector :) Just wondering what practical use the separation of the two has.

推荐答案

<打击> Mscorlib中不包含本机和托管code。

除其他事项外它包含了System.Object的实现,它必须始终是present为了使一切工作。

Amongst other things it contains the System.Object implementation, which must always be present in order for everything to work.

它具有是唯一装配的区别是,CLR要求每一个管理的过程里面加载。

It has the distinction of being the only assembly that the CLR requires to be loaded inside every managed process.

本来,很多可选的东西(的东西,技术上运行的应用程序不要求)投入mscorlib程序,因为他们的事情,是极有可能要使用的每一个人。这包括诸如Hashtable和清单。

Originally, a lot of "optional" stuff (things that technically aren't required to run an app) was put into mscorlib because they were things that were highly likely to be used by everybody. This includes things like HashTable and List.

这给了PERF的推动作用。如果每个人都将要使用的东西,那么它是有道理的,把它的每个人都必须加载组件内。然后,你就不必浪费时间去和有约束力的一大堆不同的组件。

This gave a perf boost. If everybody is going to want to use something, then it makes sense to put it inside the assembly that everybody has to load. Then you don't have to waste time going and binding a whole bunch of different assemblies.

在system.dll中的东西基本上是一切,是不是值得被列入mscorlib中。

The stuff in system.dll was basically everything that wasn't "worthy" of being included in mscorlib.

这个趋势,但是,已经开始得到扭转。在CLR正在努力减少mscorlib程序的大小。辗转了很多东西Silverlight的,例如(减少下载量)。

This trend, however, is starting to be reversed. The CLR is making efforts to reduce the size of mscorlib. A lot of stuff was removed for Silverlight for example (to reduce download size).

我觉得他们可能会做更多这样的工具和V4(及更高版本),但我不知道的细节。

I think they might be doing more of this kind of stuff for V4 (and later versions) but I'm not sure about the details.

这篇关于mscorlib.dll中和放大器; System.dll中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆