什么是.NET组件和COM组件之间的差异 [英] What is the Difference between .NET components and COM Components

查看:173
本文介绍了什么是.NET组件和COM组件之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是.NET组件和COM组件之间的差异,有时我们使用.NET组件在我们的项目中,包括有时我们包括COM引用。什么是背后的想法?先谢谢了。

What is the Difference between .NET components and COM Components, sometimes we use .NET Components to include in our projects and sometimes we include COM reference. What is the idea behind? Thanks in advance.

推荐答案

.NET组件进行管理code(内存处理是为你做了)

.NET components are managed code (memory disposal is done for you)

COM 是软件组件的接口标准。 COM组件不受管理code(使用引用计数进行存储处理)。

COM is an interface standard for software components. COM components are unmanaged code (memory disposal is performed using reference counting).

这里

如何在COM和.NET相关?

COM和.NET是互补发展   技术。 .NET公共语言   运行时提供了双向的,   与COM透明集成。本   意味着COM和.NET应用程序   和部件可以使用的功能   从每个系统。这将保护您的   在COM现有投资   应用,同时让您   利用.NET的受控   步伐。 COM和.NET可以实现类似   结果。 .NET Framework提供   开发人员提供了显著数   益处,包括更强大,   基于证据的安全模型,   自动内存管理和原生   Web服务支持。对于新   开发,Microsoft建议.NET   为preferred因为技术   其强大的管理运行   环境和服务。

COM and .NET are complementary development technologies. The .NET Common Language Runtime provides bi-directional, transparent integration with COM. This means that COM and .NET applications and components can use functionality from each system. This protects your existing investments in COM applications while allowing you to take advantage of .NET at a controlled pace. COM and .NET can achieve similar results. The .NET Framework provides developers with a significant number of benefits including a more robust, evidence-based security model, automatic memory management and native Web services support. For new development, Microsoft recommends .NET as a preferred technology because of its powerful managed runtime environment and services.

这篇关于什么是.NET组件和COM组件之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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