. NET Framework

Source: Internet
Author: User

Recent studies. NET is more difficult to understand, video foggy. Don't be afraid of not knowing, afraid don't know.

By checking the information. Collect some help to understand. NET Framework, here to share with you. There is a general understanding, we will slowly grasp in the future.

. NET Framework (. netframework) is developed by Microsoft, a software development platform dedicated to agile software development, high-speed application development, platform independence, and network transparency. It is a multilingual component development and execution environment that provides a unified programming environment across languages.

. NET Framework is designed to make it easier for developers to build Web applications and Web services. Make the application between applications on the Internet. Ability to communicate using Web services.

From a hierarchical perspective: The NET Framework consists primarily of two parts: the Common Language Execution (CLR) and the. NET Framework class library (BCL, the blue part).

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvq1lmx2hhchb5z2lyba==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">

First, the CLR

CLR is a . NET the environment during the execution of the framework. the CLR provides a common set of services for languages that are compatible with them, such as exception handling, security, debugging, and so on.

in the course of running the program, CLR control the interaction of the code with the operating system, by CLR the code that runs is called the controllable code. Instead. Code that is not run by the CLR is called an uncontrolled code. The controllable code "collaborates" with the CLRby providing metadata to the CLR .

CLR provide services to code, such as garbage collection and memory management. Unlike the controllable code, the uncontrolled code can bypass the. NET Framework API functions and invoke the operating system's API functions directly.

during the compilation process. the CLR translates the code into MSIL(Microsoft intermediate language). MSIL is a set of instructions that are independent of the CPU.

MSIL includes instructions for manned, stored, initialized, and invoked methods, and also includes instructions for arithmetic and logical operations and exception handling. The metadata is created and stored with the compiled code, regardless of what code is compiled, except for MSIL.

Metadata includes information about the members, types, and references in your code. The CLR uses metadata to locate and load classes, create machine codes, conduct security checks on code, and run code. Such After the code is compiled. The compiled file includes MSIL and metadata.

Files that include MSIL and metadata are called PE (Portable runtime) files. Before the program runs, theCLR 's JIT compiler calls the metadata and converts the MSIL in the PE file to machine code. Because the machine code relies on the CPU, and MSIL does not depend on the CPU, the CLR provides a different JIT compiler, And each compiler is used in a different architecture. This means that it is based on the JIT compiler used to compile the MSIL . The same MSIL can be run in different architectures.

during the management of the code, CLR It also performs various tasks such as memory management, code security checks, threading, checksum compilation code. Like what. During application execution,theCLR allocates memory, manages threads and processes, and enforces security policies.

The CLR defines a common type library (CTS), which is a standard type library that supports all of the CLR 's language use. the CTS lists the types supported by the CLR. There are classes, interfaces, numeric types, and trusts.

Because data types are handled identically in all languages, we are able to pass variables from classes created in a CLR -compatible language to a class. Regardless of which programming language is used to define the variable.

Two. NET Framework class Library

. The NET Framework class library contains multiple reusable, object-oriented, extensible classes. It is integrated with the CLR and is common to all programming languages in Visual Studio.NET.

. the classes in the NET Framework are organized hierarchically,thesystem namespace is at the top of the hierarchy, and all other classes are included.

There are mainly: converting data types, processing parameters, calling local and remote programs. Manage the application environment.

Three. The basic features of the NET Framework

. The NET Framework has the basic functionality of cross-language use and provides an integrated debugger that can debug a program written in multiple languages.

It is not only possible to debug during program execution, but also to perform remote debugging. Access security and role-based security through code. . NET The framework introduces new security mechanisms for applications.


We've learned several programming languages now, and we can make a small system that's just shallow stuff. We write the code exactly how to operate in the system, these deep things will need to make unremitting efforts in the future. There is a way in the book Mountain. The boundless of the




. NET Framework

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.