ASP. NET 2.0 secrets two books have been starting for some days, but there is no time to read them carefully. I just read the reference when I need it occasionally. Recently I decided to take the time to read them, I take notes on what I think is needed and enter my blog for review.
ASP. NETYes. NET Framework.
build Asp. net page, . net Framework .
. NET FrameworkConsists of two parts: framework class library (Framework class library) And Public Language Runtime
Framework class library
. NET Framework 2.0 Contains 18 619 Type, 12 909 Classes, 401 759 Public methods, 93 105 Public attributes and 30 546 Events.
1. namespace
namespace ( Namespase ) is just a category, for example, all components related to the essay system; all classes are located in system. io namespace.
. 2.ProgramSet (Assembly)
Assembly ( Assembly ) Is to save . NET Framework On the hard disk where the class is located . Dll File. For example ASP. NET Framework All classes in System. Web. dll .
. NET Framework 2.0Contains51Assembly.
Use. NET FrameworkIn any class, two things must be done. First, the application must reference the Assembly containing the class; second, the application must import the namespace where the class is located.
Public Language Runtime
Public language ( CLR ) is used to execute the Code application.
C #The compiler converts the codeMsil(Microsoft intermediate language.MsilIs an underlying platform-independent language.
When the application is running, Jiter ( Just-in-time Compiler) Msil Code is compiled into machine code in real time. Normally, the application does not Msil Compiled into machine code. Only methods actually called during compilation and execution can be compiled into machine code.