Chapter 2:. Net Environment
1. NET platform Composition
1). Net Framework: create a web applicationProgram, Windows applications, Web Services
2) a series of development tools: vs. net
3) A series of servers: Win2000, SQL Server, and BizTalk Server
4) client software: WINXP, WinCE, and office xp
2. Features of the Net Platform
1) Cross-language: a program written in one language is compiled into an intermediateCodeThe compiled code can interact with the Code Compiled from other codes.
2) Cross-System Platform: language code -- compiler --> msil code -- jit --> machine code of a specific system platform.
3) Security:. Net implements resource and type security through the public Language Runtime Library
4) Support for open Internet standards and protocols: HTTP, XML, SOAP, WSDL, and UDDI
3. NET Framework
CLR-> base class library-> ADO. NET and XML-> ASP. NET web forms/Web Services and Windows Forms
1) Create and execute managed code
CLR-oriented language code -- compiler --> MSIL--JIT --> machine code
2) Automatic Memory Management
When the program runs, CLR allocates a continuous address space for the program, called managed heap. CLR allocates memory for each newly created object in the managed heap. GC determines the objects to be released based on the survival time and the number of recycles of objects. GC is called to reclaim memory only when the hosting heap space is insufficient. (It is safer than C ++, but it cannot release unnecessary memory in a timely manner), but it needs to be explicitly released for unmanaged resources, such as file and network connections, windows handle or bitmap
3) Cross-language interoperability
Cross-language interoperability refers to the ability to interact code written in one language with code written in other languages. It helps to maximize code reuse and development efficiency. CTS provides the foundation for cross-language interoperability. Together, CLS and CTS ensure cross-language interoperability.
4. NET Framework class library
1) System Framework Service
2) ADO. NET components
3) XML data component
4) Windows Forms Components
5) web forms Components
6) XML Web Service
5 vs. Net Introduction
This part is easy to use.