4 basic concepts of. Net

Source: Internet
Author: User
Concept

1. Virtual Object System---VOS
It supports both procedural and object-oriented languages, while providing a rich system to accommodate the various

The characteristics of a language. For a procedural language, it describes the type of the value and specifies the rules that must be followed for all values of the type;

In object-oriented language, it unifies the object model of different programming languages. Each object is uniquely identified in the Vos to

Distinct from other objects.

2, Meta data
Metadata is a salutation to the type description code in Vos. When the compiler converts the source code into intermediate code, it will

Dynamic generation and is included with the compiled source code in a binary file. Metadata carries the type information in the source code.

Description, which solves the version problem to some extent; the type description used by the program is bound to itself.
When the CLR locates and loads a type, the system obtains the type information in the application by reading and parsing the metadata, and the JIT compiler

After obtaining the loaded type information, translation of the intermediate language code into local code, based on the program or user requirements built

An instance of a type. Because throughout the process, the CLR always establishes and manages the types of specific applications based on metadata, from

And the security of the type is ensured.
In addition, the metadata has its own function in the process of solving the problem and establishing the runtime context boundary. And about the number of dollars

Everything was done in the background by. Net.

3. Common Language Specification----CLS
The CLS is a collection of CLR-defined language attributes that are used primarily to resolve interoperability issues. If a class library adheres to the CLS, the same

Other languages that observe the CLS specification will be able to use its externally visible items. All language features that support the CLS and use only the CLS

Component is called a CLS component.
In the CLS, the System.CLSCompliantAttribute class is used to identify a collection or whether the class is CLS-compliant;

The System.clscompliantattriute constructor has a Boolean return value that represents the associated item is

does not conform to the CLS specification.

4. Virtual Execution System----VES
The VES is the implementation of the Vos, which is used to drive the operating environment. The generation and use of metadata, the compliance check of common language specification and

Memory management in the execution of the application is done by it. Specifically, the VES has mainly completed the following functions:
(1) Loading the intermediate code.
(2) Use JIT to convert intermediate code to local code.
(3) Loading meta data.
(4) Code Management Services---include garbage collectors and exception handling.
(5) Customization and commissioning services.
(6) Threading and environment management.




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.