.NET 4.0 中的 Microsoft.csharp.dll 是什么 [英] What is Microsoft.csharp.dll in .NET 4.0

查看:35
本文介绍了.NET 4.0 中的 Microsoft.csharp.dll 是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个 DLL 默认添加到 Visual Studio 2010 项目中.这个新组件有什么用?使用 Reflector 查看后似乎没有太多内容,Google 似乎也没有太多可说的.

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.

推荐答案

当/如果您使用 dynamic 关键字 在您的项目中.该程序集包含 C# 运行时绑定器.

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

C# 编译器本质上已被提取到一个库中,以便它可以发出、编译和运行支持 dynamic 关键字所需的代码.您第一次在代码中使用 dynamic 时,该程序集(以及 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.

这篇关于.NET 4.0 中的 Microsoft.csharp.dll 是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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