In the end what is NET?

.NET concepts relatively large, this article discusses only the basics, using only simple language to describe.

We are NET programmers, but we have not thought about in the end what is .NET?

.NET is Microsoft's official definition of a dedicated software framework for agile development.

 Probably around mid-2000, Microsoft launched .NET standards, as with the development of a standard equivalent to time as defined interface, you need something to make it happen. .NET Framework is a concrete realization of .NET.

It can be considered an excellent .NET platform design specifications and standards.

 

Below us, to say what is the .NET Framework?

The official definition of .NET Framework is a managed execution environment Windows, the application can provide a variety of services for its operation.

.NET Framework has two main components:  

1. .NET common language runtime (Common Language Runtime, CLR)

CLR core functions: memory management, assembly loading, security, exception handling, and thread synchronization, the same CLR as a housekeeper, manages the implementation of the program code, provides a runtime environment for the program. The hosted CLR code called managed code.

       To understand the mechanism CLR, we must know that we write C # code after VS compiled into what?       

The left view is we write C # source code is compiled into a managed module on the right figure is part of a managed module, here we focus only IL code, the other without concern. Through C # code is not an end instruction CUP generated by the compiler, the IL code but an intermediate language, which is managed code, the operation is the CLR IL code, the CLR will eventually be compiled into IL may be appreciated the instructions of a computer Cpu. We should know when you need to run memory for computers, C ++ programmers era is the need to manually manage their own memory, so you need to allocate and free memory. But we .NET programmers are not required for this operation. This is because the CLR to help us do this operation automatically allocate and free memory of the memory. This operation is transparent to the NET developers, this is the article mentioned earlier CLR main functions of memory management. By the CLR manages memory called the release of the managed heap. Code security code in the code called managed heap, also known as managed code, otherwise not managed heap is called unmanaged code, unmanaged code may cause memory leaks.

CLR is a very complex thing. This article does not discuss too much, just a simple explanation of their concept.

2. Framework Class Library 

.NET Framework Class Library should be better understood, like our own package similar tools concept. Framework Class Library (Framework Class Library) referred to FCL, FCL which is defined for us by thousands of types. With these types we can develop various types of applications webService, MVC, Windows Forms, WPF, Windows services. So, we need to learn NET, although you do not need to have mastered the entire NET class library. This is not reality, but also to grasp the type commonly used as much as possible.

to sum up

.NET Framework is the main .NET platform to achieve the standard, to achieve not only have .NET Framework as well as .NET Core and mono.

The .NET Framework CLR and FCL.

The CLR provides a runtime environment for the NET program and host it.

FCL Framework Class Library provides a lot of rich basis for its use as a type of NET programmer. It encapsulates some basic operations, in order to develop NET programmer facilitated.

 ps: the article is the personal study notes. Great God do not spray.

Guess you like

Origin www.cnblogs.com/ITGrass/p/12129402.html