什么是Microsoft.csharp.dll在.NET 4.0中csharp、Microsoft、dll、NET

2023-09-02 02:09:38 作者:消夨°

此DLL默认情况下,在Visual Studio 2010中的项目加入。这是什么新的组装用?它似乎并没有考虑使用反射器和谷歌似乎并不具备太多的话要说,要么后含有太多。

This DLL is added by default in Visual Studio 2010 projects. What is this new assembly used for? It does not seem to contain much after looking at it using Reflector and Google does not seem to have much to say about it either.

推荐答案

它是用来当/如果你使用的 动态关键字在您的项目。该组件包含了C#运行时绑定。

It is used when/if you use the dynamic keyword in your project. The assembly contains the C# runtime binder.

C#编译器实际上已经被提取出来到库中,以便它可以发出,编译和运行code需要支持动态关键字。当您第一次在code使用动态,该组件(以及System.dll中,System.Core.dll的和System.Dynamic.dll)将得到加载到AppDomain中。

The C# compiler has essentially been extracted out into a library so that it can emit, compile and run code needed to support the dynamic keyword. The first time you use dynamic in your code, this assembly (as well as System.dll, System.Core.dll and System.Dynamic.dll) will get loaded into your AppDomain.

 
精彩推荐
图片推荐