简体   繁体   English

什么是组件?

[英]What are assemblies?

I have heard many times the word assemblies. 我多次听过汇编这个词。 Still I don't know what they are and its uses in programming language. 我仍然不知道它们是什么以及它在编程语言中的用途。

Most of your questions are for c# so here is the link for .net Assembly 你的大多数问题都是针对c#所以这里是.net汇编的链接

In the .NET framework, an assembly is a compiled code library for use in deployment, versioning and security. 在.NET框架中,程序集是用于部署,版本控制和安全性的编译代码库。 There are two types: process assemblies (EXE) and library assemblies (DLL). 有两种类型:进程程序集(EXE)和库程序集(DLL)。 A process assembly represents a process which will use classes defined in library assemblies. 流程程序集表示将使用库程序集中定义的类的流程。 .NET assemblies contain code in CIL, which is usually generated from a CLI language, and then compiled into machine language at runtime by the CLR just-in-time compiler. .NET程序集包含CIL中的代码,通常由CLI语言生成,然后由CLR实时编译器在运行时编译为机器语言。

Assembly is just a library of your classes . Assembly仅仅是一个library您的classes which you can re-use in your multiple projects so that you do not have to write one class each time for each project. 您可以在多个项目中重复使用,这样您就不必每次为每个项目编写一个类。

create one assembly and call it everywhere. 创建一个程序集并随处调用它。 thats it. 而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM