Review: What is. NET Framework?

Source: Internet
Author: User

After several years of working as a programmer, do you really understand the underlying structure of. NET Framework? I don't think everyone can say that they really understand it. So let's review the composition and mechanism of the entire. NET Framework from what is. NET Framework.

What is. NET Framework?

A:. NET Framework is an internal Windows component that supports generating and running next-generation (for frameworks before. NET, such as asp) applications and XML Web services.

 

The above is a brief answer, but it is not enough to describe the components of. NET Framework? What can we do?

 

. NET Framework components?

A: It has two main components: the public Language Runtime Library and the. NET Framework class library.

 

What is the public Language Runtime Library?

A: To put it simply, the Common Language Runtime Library can be seen as a proxy for managing code during execution. It providesMemory Management,Thread ManagementAndRemote ManagementAnd other core services, as well as strict type security and other forms of code accuracy that can improve security and reliability.

 

For the code you write to run, you must have a public Language Runtime Library. You can regard it as a maintenance tool for running programs. It is related to program memory management, thread management, and remote management. It brings type security and reliability to your program and improves security at the underlying layer.

 

What is the. NET Framework class library?

A: This is a collection of object-oriented. NET code.

 

How does the public Language Runtime Library Work?

A: Before answering this question, let's briefly talk about managed code and unmanaged code. The code developed using the language compiler in the public Language Runtime Library is called managed code; the unmanaged code is the code developed by the Language compiler in the non-public Language Runtime Library.

 

Managed code has many advantages, such as cross-language integration, cross-language Exception Handling, enhanced security, version control and deployment support, simplified component interaction model, debugging and analysis services.

 

The ". NET cross-language" language refers to the language compiled by the Language compiler based on the Common Language Runtime Library. Why cross-language? This is because the language compilers and tools based on the public Language Runtime Library are defined by the Public Language Runtime Library.General Type SystemAnd they follow the rules of the Common Language Runtime Library for defining new types and creating, using, maintaining, and binding to types.

 

Let's talk about how the public Language Runtime Library works:

1. Select the source code relative to the language compiler, such as C # using csc

2. The language compiler of the Common Language Runtime Library compiles the source code into MSIL (Intermediate Language) And generate availableMetadata. MSIL and metadata are contained in a portable executable (PE) file.

3. By JIT (Instant Compiler) Compile MSIL into local code.

4. Run the program

 

Here are several keywords:Memory Management,Thread management,Remote Management,Common Type System, intermediate language, metadata, instant CompilerNext Chapter.

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.