什么是托管和非托管库之间的区别是什么? [英] What are the differences between managed and unmanaged libraries?

查看:1090
本文介绍了什么是托管和非托管库之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能告诉我,外部管理库之间什么样的变化和非托管?
为托管和非托管代码之间的完全一样的东西?

Can you tell me what changes between libraries external managed and unmanaged? is the exact same thing between managed and unmanaged code?

推荐答案

是的,有管理的库中包含.NET代码(也被称为程序集),非托管库包含某种(C ++,VB6或类似)的本机代码。

Yes, a managed library contains .NET code (also called an assembly), an unmanaged library contains native code of some sort (C++, VB6 or similar).

外部的通常意味着你没有自己编译它,但使用第三方组件。

External usually means that you didn't compile it yourself but use a 3rd party component.

要检查是否为组件管理与否,

To check whether as assembly is managed or not,


  • dotPeek 打开它。如果是.NET,它会说类似MSIL,否则不支持。

  • 另一种选择是 ILSpy ,该会说此文件不包含管理大会。

  • 工具的 ILDASM 的Windows自带的SDK,并在当地组装的情况下,说:没有有效的CLR头。

  • 你也可以看它是否有 mscoree 的(.NET)为依赖

  • I open it in dotPeek. If it is .NET, it will say something like "msil", otherwise "not supported".
  • Another option is ILSpy, which will say "This file does not contain a managed assembly."
  • The tool ILDASM comes with the Windows SDK and says "no valid CLR header" in case of native assemblies.
  • You could also see if it has mscoree (.NET) as a dependency

这篇关于什么是托管和非托管库之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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