. NET Foundation One

Source: Internet
Author: User

The. NET framework is a new managed code programming model for Windows that contains the CLR (Common Language Runtime) and the BCL (Base CLass Library) composition.

First, the CLR

1. What is the CLR?

The Common Language Runtime and JVM (Java Virtual Machine,java virtual machines implement the platform-agnostic nature of Java, which masks specific information about the platform, Just build the target code that runs on the Java Virtual machine and it can be run on any platform. Once compiled, run everywhere) is the same as the operating environment.

2. What to do?

The CLR is primarily responsible for resource management, such as memory management, garbage collection processing, to ensure the necessary separation between the application and the underlying operating system.

3, how to manage the code

A. Select the compiler

B. Compile the managed code (code that runs the program under CLR monitoring) to MSIL (Microsoft intermediate Language Microsoft intermediate Language), generating the metadata (Metadata, the language that describes the data) while generating the Mmsil Primarily describes data type definitions, code references, and so on) that are collectively included in a portable executable PE (portable executable) file.

C. The CLR's own JIT compiler compiles MSIL into machine language, and JIT detects code security.

D. Execute the code, just the first call to compile.

4, a little

The most important features of the CLR are: cross-language, that is, classes written in vb.net, can be inherited by C # classes.

II. BCL

1. What is BCL?

The base Class library is a common programming framework that can be exploited by developers of all languages and is one of the specifications of the CLI (Common Language Infrastructure Common Language Infrastructure). These include: Performing network operations, performing I/O operations, security management, text operations, database management, XML operations, interacting with event logs, tracing and some diagnostic operations, using unmanaged code, creating and invoking dynamic code, and so on.

2, what is the use?

A. Provide the necessary items to develop various solutions and speed up the development of the solution;

B. Align the various solution models.

C. The development team can use different languages in the. NET platform.

3. Composition

BCL base Class library containing database categories (ADO), Windows categories, XML categories, graphics category (GDI +) system categories, and ASP.

Third, DLL

1. DLL

The dynamic link library, dynamically linked libraries, also known as components, CLR and BCL are all components. When we do. EXE file, the corresponding DLL file is also called, a program is split into multiple independent dynamic link libraries, or a DLL file can be shared by multiple applications.

2, the role of DLL files

If all the files are put into the program, then the application will be large, the disk space will be large, and the rebuild will need to compile all the code. DLL files are different, you can create a separate DLL file, only call the time, will occupy memory space.

  

. NET Foundation One

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.