In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to analyze the concept and development of .NET Framework. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
What is the concept of .NET Framework? It is a powerful and innovative new platform built by Microsoft for developing applications. The current version of the .NET Framework will run on the Windows operating system, and will be released on other operating systems in the future, such as mono, including various linux versions and mac OS. In addition, it will be performed on personal digital assistant (PDA) devices and some smartphones. .net Framework can create windows applications, web applications, web services and various other types of applications.
The .NET Framework is designed in such a way that it can use a variety of languages, C++/vb/j#/ and even some older languages. The focus, of course, is on our client, which is, after all, a programming language designed by microsoft specifically for the .NET Framework.
In order to execute C # code, it must be converted into a language that the operating system can understand, that is, native code. This conversion process is called compiled code and is executed by the compiler. It is divided into two phases under the .NET Framework.
First, when compiling code that uses the .NET Framework library, instead of immediately creating operating system-specific native code, you compile the code into Microsoft Intermediate language (Microsoft Intermediate Language,MSIL) code, which can be cross-platform.
Obviously, it's not enough to execute the application, and you need to recompile it. It is the MSIL intermediate code mentioned above that is compiled into native code for OS and the target and its structure. So that OS can execute the application.
.net Framework concept and developed assemblies
When you compile an application, the MSIL code you create is stored in an assembly that includes executable application files (which can be run on windows without the need for other programs with a .exe extension) and libraries (with a .dll extension) used by other applications.
In addition to containing MSIL, the assembly also contains meta-information (that is, information about the data contained in the assembly, also known as metadata) and optional resources (other data used by MSIL, such as sound files and pictures). Meta-information can add the required data to the system registry, which is often not possible when developing on other platforms.
.net Framework concept and managed code for development
After compiling the code to MSIL and then compiling it to native code with the compiler, the task of CLR (common language runtime) is not fully completed. Code written in .NET Framework (runtime) is managed. That is, CLR manages the memory of the application, handles security, allows cross-language debugging, and so on.
.net Framework concept and garbage collection for development
One of the most important functions of managed code is garbage collection (garbage collection). This ensures that some memory is completely freed when the application no longer uses it. Unlike in the past, this work is mainly the responsibility of programmers, a few simple errors in the code will allocate large chunks of memory to the wrong place, making the memory mysteriously missing. This usually slows down the computer gradually and even causes the system to crash.
There is something to note here, because this work is done at an unpredictable time, so you must remember to do such a check when designing your application. After all, it is not very human, and code that requires a lot of memory to run should perform such a check instead of waiting for garbage collection, hehe.
Put them together.
Before moving on, summarize the steps you need to create a .NET application above:
1. Write the application code in a .NET compatible language (such as C #).
2. Compile the code to MSIL (Intermediate language) and store it in the assembly.
3. Execute the code and compile the MSIL into native code.
4. Run the native code and execute the application in the managed CLR environment.
On how to analyze the concept of .NET Framework and development to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.