Clr_via_c #. 3rd translation [1.2 combining managed modules into a set]

Source: Internet
Author: User

In the previous section, kinetics mentioned that a Chinese translation has long been available.

Zhou Jing's blog:
Http://transbot.blog.163.com/you can download several hundred Chinese Translations
China-Pub reservation:
Http://www.china-pub.com/196978

I thought it would end like this, but it should continue.When learning technology at the same time, every word from English translation to Chinese needs to be considered. Although the speed is slow, it is not like simply looking at Chinese for one n lines, however, I have deepened my understanding of the meaning of the author, which is also good for myself. So proceed, and thank kinetics for providing me with a reference.

Bytes -----------------------------------------------------------------------------------

1.2 combining managed modules into assemblies combines managed modules into a set

InCLRActualIt does not act on modules, but onProgramAssembly ). Assembly is an abstract concept that cannot be grasped by beginners. First, an assembly is composed of one or more modules or resource files. Second, the set is reusable, secure, and has the smallest unit of version. Based on your choice of compilers or tools, you can generate a single file or multi-file assembly.CLRAssembly is what we often call component ).

 

In Chapter 2, I will introduce assembly in detail, so I will not repeat it here. What I want to do now is to let you know that it also provides a way to treat a group of files as an entity.

 

Figure1-2Set should help to explain whatIs an assembly. In this figure, some managed module and resource (or data) files are being processed by a tool. This tool generates a singlePe32(+) File, indicating the logical Group of the file.Pe32(+) The file contains a data block called a list. A list is a set of simple metadata tables. These tables describeThe file of the Assembly, the public export type implemented by the files in the Assembly, and the data files and resources associated with the Assembly.

 

By default, the compiler actually converts the generated hosting module into an assembly, that is, inC# The Compiler generates a inclusion list. The list shows that the Assembly is only a collection of files. Therefore, for a project with only managed modules but no resources (or data) files, an assembly is a managed module. If you want to add a group of files to an assembly, you must know more tools (such as assembly connector,Al.exe) And its command lineOperation. I will introduce these tools and operations in Chapter 2.

 

An assembly allows you to separate the logical and physical concepts of reusable, secure, and version-controlled components. How do you divideCodeAnd resources depend entirely on you. For example, you can place a type or resource that is rarely used in a separate set of programs. When necessary, this individual file can be downloaded from the website. If files are unnecessary, they will never be downloaded, saving disk space and reducing installation time. The Assembly also allows you to break the deployment of files, but still treats all files as a set.

 

The assembly module also contains information about Assembly references (including their version numbers ). This information enables the Assembly to describe itself. In other wordsCLRIdentifiableThe direct dependency of the Assembly to ensure that the code in the Assembly can be executed. You do not need to register orAdding information is much easier to deploy an assembly than to deploy an unmanaged component.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.