.NET Framework Overview

1.NET Framework is to provide a variety of services for its applications running managed execution environment, which consists of two main components: (1) Common Language Runtime (CLR), (2) .. NET Framework Class Library;

The core 2.NET Framework is the CLR;
3.CLR core CTS, CLS (Common Language Specification);
4.CTS is a common type system (the Common the Type the System);
5.CLS common language is defined (the Common Language Specification);
. 6 .CLR is common language runtime (common language runtime);
execution model of 7.CLR: 1, the source code (vb, cs) compiled into managed code block. Managed code block consists of metadata and intermediate language.
          2, the managed code combined into an assembly, also called component (dll). Assembly contains a called "List" module that records information including resource files that make up the assembly of modules and need to refer to their own information.
          3, load the common language runtime.
          4, execution of the code assembly.
          5, to generate native code.

8.CLI: Common Language Infrastructure, defines a language-independent runtime environment across architecture, which allows developers to use various languages defined in the specification to develop software, and does not require correction can be run on different software the computer architecture;
9.BCL: foundation Class library
BCL is a common programming framework, called the base Class library, all languages developers can take advantage of it. Is one of CLI (Common Language Infrastructure, Common Language Infrastructure) specification, including: the implementation of network operations, perform I / O operations, security management, text manipulation, database operations, XML operations, interact with the event log, track, and some diagnostic procedures, using unmanaged code, create and invoke dynamic code, etc., the particle size is relatively small, provide the basis for all the support frame.
10: FCL, Framework class library (Framework Class Library)
the FCL provides a programming framework for large size, which is the framework for the design of different applications, FCL most implementations are cited BCL, for example, we often say that the development framework: ASP.NET , MVC, WCF and WPF, etc., provides the programming framework for the different levels.
11: managed code and unmanaged difference code: 1, is an intermediate language managed code running on the CLR;
                        unmanaged code is compiled into machine code to run on the machine.
                   2, managed code platform and language independent, better compatibility between different language platform;
                        unmanaged code language and platform dependent.
                   3, managed code can enjoy the services provided by the CLR (e.g., security detection, garbage collection, etc.), do not need to perform these operations;
                                                      unmanaged code need to provide their own safety testing, garbage collection operations.
                   4, .Net have a lot of unmanaged resources, such as StreamWriter, Timer, database connection.

12: Managed code is compiled in Visual Basic .NET and C # compiler code, managed code runs in the Common Language Runtime (CLR) in
13: unmanaged code runs outside the common language runtime environment (CLR) by the direct execution of operating system code. Unmanaged code must provide their own garbage collection, type checking, security and other support services 14: Metadata: a binary information for storage in the common language runtime portable executable (PE) file or stored in a memory the procedure described in

15: metadata store the following information: (1) described assembly, (2) description of the type, (3) property
16.NET Framework framework: first source file written in C # C # hello.cs compiled by compiler, compiled into .NET PE file structure, which is exe file format, when the program runs, Windows does not load the loader is responsible for the program's memory allocation, thread management, etc., but is only responsible for the jump to the CLR execution engine (EE), the control referred CLR, allocated memory by the CLR, thread management, exception handling, etc.


 

Guess you like

Origin www.cnblogs.com/zyx13966104797/p/11140466.html