4 important. NET Basic

Source: Internet
Author: User

1. Virtual Object System---VOS

It supports both procedural and object-oriented languages, while providing a type-rich system to accommodate the features of the various languages it supports. For procedural languages, it describes the type of value and specifies the rules that all values of the type must obey, and in the context of object-oriented language, it unifies the object model of different programming languages. Each object is uniquely identified in Vos to distinguish it from other objects.

2. Meta-data

Metadata is a salutation to the type description code in Vos. When the compiler transforms the source code into an intermediate code, it is automatically generated and is included in the binary code file with the compiled source. Metadata carries a description of the type information in the source code, which solves the version problem to some extent, and the type description used by the program is bound to itself. When the CLR locates and mounts the type, the system obtains the type information in the application by reading and parsing the metadata, and the JIT compiler obtains the loaded type information, translates the intermediate language code into local code, and builds an instance of the type based on the requirements of the program or user. Because of the entire process, the CLR always establishes and manages the type of the specific application based on the metadata, thus guaranteeing type security.

In addition, meta-data has its own role in solving the call of the method, establishing the boundary of the runtime context. And everything about metadata is done in the background by. Net.

3. Common Language Specification----CLS

The CLS is a set of language attributes defined by the CLR and is primarily used to resolve interoperability issues. If a class library adheres to the CLS, other languages that are similarly compliant with the CLS specification will be able to use its externally visible items. All components that support the CLS and only use language features in the CLS are called CLS components.

In the CLS, the System.CLSCompliantAttribute class is used to identify a collection or whether the class is CLS-compliant, and in the System.clscompliantattriute constructor there is a Boolean return value that represents whether the item associated with it conforms to the CLS specification. Job coordinates www.zhizuobiao.com

4. Virtual Execution System----VES

The VES is the implementation of Vos, which is used to drive the operating environment. The generation and use of metadata, the compliance checks of common language specifications, and memory management during application execution are all done by it. Specifically, the VES mainly accomplishes the following functions:

(1) Load the intermediate code.

(2) Use JIT to convert intermediate code to local code.

(3) Load meta data.

(4) The Code Management Service---includes the garbage collector and exception handling.

(5) Customization and commissioning services.

(6) Thread and environment management.

4 important. NET Basic

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.