Now that I want to learn. NET, I need to know her first. I don't like big text. I can draw a picture by myself to see. NET.
The blue part at the bottom layer is the basis of the. NET Framework and also the basis of all application software .. . NET Framework is not out of thin air. In fact, APIs, COM +, and related drivers are still the cornerstone of the Framework .. NET Framework is just a systematic encapsulation and expansion of these predecessors. In this process, we have learned a lot of Java Framework experience. For the relationship between Win32 APIs and. NET Framework APIs, refer to Microsoft Win32 to Microsoft. NET Framework API Map.
Recipe: Except for the blue part, the subjects of the. NET Framework are all others. It is based onGeneral language infrastructure(Common Language Infrastructure, CLI). It is like a recipe that has been missing for a long time.
Chef:Common Language Runtime platform (CLR)Is the implementation of the CLI architecture on the Windows platform. A simple understanding is the CLR chef, which enables the CLI recipe to play its real role.
Let's try these dishes:
Food:Class Library (Framework Class Library, FCL)All class libraries that can be used in. NET. It is divided into two parts:Raw MaterialsAnd the other part isFinished Food.
- Raw Materials:Base Class Library (BCL) As the name suggests, it contains some basic classes, such as IO, String, and Net. They are essential ingredients for cooking, and can also be eaten directly.
- Finished Food:FCL. These class libraries are basically referencedBcl, Based on these class libraries. Such as ADO. NET, ASP. NET, and Windows. Forms. They are more convenient and specific for programming.
Tableware:Common Language Specification (CLS)AndCommon Type System (CTS), YesCLITo ensure compatibility between different languages and. NET Framework. It seems that some diners are used to chopsticks, while others prefer to use forks. For example, they use nine-tooth dingtalk. WithCLSAndCTSAll diners can use their favorite tableware to eat delicious food. For example, the int in C # And the Integer in VB are uniformly mapped to System. Int32.
Diners: Various languages, such as C # and VB.
For details about how diners eat these items, refer to the in-depth exploration. NET Framework internally understand how CLR creates runtime objects. This article explains in detail ,. NET is running, involves some underlying things, you can understand the line, do not have to go.
Well, this is my own understanding of the. NET Framework. It may be an inappropriate metaphor or even a conceptual error. I hope you can point it out. After all, I am a beginner. criticism will help me grow. Thank you!