Chapter 2. NET Framework programming

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.