Chapter 2. Net Development Platform Architecture
1.1 compile the source code into a managed Module
The hosting module consists of the PE Header, CLR header, metadata, and intermediate language (IL.
The idea of this sentence is that the hosting module should first be able to run on windows, then the. NET framework can be executed, and then the CPU can be executed.
Metadata is used to describe the content defined by the managed module (such as the defined type and their members) and referenced content.
The idea is that metadata is a description file of the hosting module, indicating its classes and methods.
1.2 combine managed modules into an assembly
CLR does not deal with managed modules, but with assembly. An assembly is a logical combination of one or more managed modules and some resource files.
The idea is that the hosting module is the basis of the Assembly, and the hosting module is the focus.
1.3 load the universal language runtime (CLR)
Skip
1.4 run the Assembly Code
Skip
1.5.net framework class library
Allow you to develop 6 types of applications without listing them. The six applications have shared class libraries and exclusive class libraries.
1.6 general type system
The class has four members, fields, methods, attributes, and events. The 4 members have six access permissions: privat, protected, public, internal, protected, internal, portected, and internal.
Explanation: Internal. The method can be called by code in the same assembly.
All classes have methods to determine whether two instances are equal, get the hash code of the instance, query the instance type, and execute the shortest copy of the Instance (copy the memory address ), obtains the string representation of the current instance status.
1.7 general language specifications
Class method re-classification, constructor, destructor, overload operator method, index method, custom method.
1.8 interoperability with unmanaged code
You only need to know the meaning of the title.