1..net frame structure? Contains the common language runtime (CLR) and the Framework class library (. NET Framework class Library, FCL) 2.CLR 1, for one that will be oriented. NET platform for the development of people, to understand. The entire composition of the net platform is very necessary, as illustrated in 1. NET platform: This figure is famous. NET platform structure diagram, as you can see from this diagram, is the. NET Framework in the? Microsoft.NET
What is the basis for development on the platform? asp
, Windows Forms and? Vs.net
is just. NET platform for the development of a part of his. NET application development and presentation. The core technologies of the net platform are: Common language runtime (Clr:common Language runtiome), base class libraries (Bcl:base class library),. NET language and visual? Studio.NET
As you can see from this diagram, the. NET Framework is a virtual running platform on the Windows platform, and you can imagine swapping the most down-level windows for other operating systems, such as Linux, to be implemented using CLS-compliant (Common Language specification, Common Language Specification). NET language, (? vb.net
C#? JScript.NET
etc), to create? asp
Or the functionality of Windows Form (possibly called a Linux Forms) application, which is actually what mono plans to implement. So you can say that, in theory, C # is a cross-platform language, much like Java. C # Another Place like Java is that it is also a (special) language, as in Java, C # programming code is first compiled by the C # compiler into a special byte code, (Microsoft intermediate Language,msil, Microsoft) Intermediate language, the runtime is then compiled into machine code by a specific compiler (JIT compiler, Just in time, jiter) for execution by the operating system. Not just the C # language, all. NET language (which will include the dozens of modern encoding languages we use) can write code for the CLR-oriented program, which is in the. NET is called managed code, and all Managed code runs directly on the CLR with platform-independent features. The explanatory language is safe and can be given more functionality through his platform, such as automatic memory management, exception handling, and, in fact, many of the features of the C # language are provided by the CLR, as illustrated by the CLR structure diagram shown in 2. 2. As you can see, many of the features of C # are provided by the CLR, such as type Checker, garbage collection (garbage Collector), exception handling (Exception Manager), backward-compatible (COM Marshaler ) and so on, specifically,. NET provides developers with the following services: platform-agnostic: The CLR actually provides a product that uses virtual machine technology, which is architected on top of the operating system and does not require that the program run on a Windows system, as long as it is a system that can support its runtime. NET applications. Therefore, an application consisting entirely of managed code, once compiled, can be supported at any time. NET. Cross-language integration: CLR word order development This is developed in any language, with code developed in these languages that can be closely and seamlessly cross-called in a CLR environment, for example, you can declare a base class object in VB, and then create a derived class of the secondary base class directly in C # code. Automatic memory management: The CLR provides a Lycra collection mechanism that can automatically manage memory. When the life cycle of an object or variable is fast, the CLR automatically frees up the memory they occupy. Cross-language heterogeneous versioning .net secure and simple component interoperability. Self-describing component: a self-describing component is an execution file that puts all the data and code in one file. Self-describing components can greatly simplify system developmentand configuration, and improve the reliability of the system. The common language runtime (COMMONLANGUAGERUNTIOME,CLR) is first known as the next-generation Windows service runtime (NGWS Runtime). It is a virtual environment that is built directly on the operating system, and the main task is to manage the running of the code. The CLR now supports dozens of modern programming languages to write code for it and is then executed in the form of an intermediate language (intermediate Langeoage,il) code. Also, the CLR provides a number of features to simplify the development and application configuration of code, while also improving application reliability. As you know, if the compiler for a language is targeting the runtime, then developing the generated code with that language is in. NET is called managed code, because such code is run directly on the CLR, so it has no platform-independent features. In the. NET platform structure diagram, above the CLR is the base Class library for. NET, which includes a unified object-oriented, hierarchical, extensible programming interface from basic input and output to data access. As you can see from the. NET platform structure diagram, a base class library can be called and extended by various languages, that is, C #, or not. vb.net
Or vc++.net, are free to call,. NET class library because C # itself is only 3..Framework class library (FCL). NETFramework Class Library editing
This entry lacks a business card map, to supplement the relevant content to make the entry more complete, but also rapid upgrade, quickly to edit it!
The. NET Framework includes classes, interfaces, and value types that can speed up and optimize the development process and provide access to system functionality. To facilitate interoperability between languages, most. NET Framework types are CLS-compliant and can be used in any programming language in which the compiler conforms to the Common Language Specification (CLS).
Chinese name. NETFramework Class Library purpose in order to facilitate the interaction between languages the importance of generating. NET applications, components ' underlying capabilities represent underlying data types and exceptions, etc.
Directory
1 Introduction
2 Naming conventions
Introduction Edit
. NET Framework types are the basis for building. NET applications, components, and controls. The types that are included in the. NET Framework can perform the following functions:
Represents the underlying data type and exception. Encapsulates the data structure. Perform I/O. Access information about the load type. Call the. NET Framework security check. Provides a client GUI for data access, multi-client GUI, and server control. The. NET Framework provides a rich set of interfaces, as well as abstract classes and concrete (non-abstract) classes. You can use these specific classes as-is, or in most cases derive your own classes from those classes. To use the functionality of an interface, you can either create a class that implements an interface or derive a class from a. NET Framework class that implements an interface.
naming convention editing
The. NET Framework type uses point syntax naming schemes, which imply the meaning of hierarchies. This technique divides the related types into different namespace groups so that they can be searched and referenced more easily. The first part of the full name (the content before the rightmost point) is the namespace name. The last part of the full name is the type name. For example, System.Collections.ArrayList represents the ArrayList type, which belongs to the System.Collections namespace. The types in System.Collections can be used to manipulate object collections.
This naming scheme makes it easy for library developers who extend the. NET Framework to create hierarchical type groups and name them in a consistent, prompt manner. It also allows you to explicitly identify types with full names (that is, namespaces and type names), which prevents type names from conflicting. Library developers should use the following guidelines when creating names for namespaces:
"Company Name" technical name "
For example, the Microsoft.word namespace conforms to this principle.
Using a naming scheme to group related types into namespaces is a very useful way to generate and record class libraries. However, this naming scheme is not valid for visibility, member access, inheritance, security, or binding. A namespace can be divided into multiple assemblies, and a single assembly can contain types from multiple namespaces. Assemblies provide a form factor for version control, deployment, security, load, and visibility in the common language runtime.
4. Classes and objects
. Class and object Relationships Dept dept=new Dept ();
Parsing: A class is the type of object (a uniform kind with the same behavior and characteristics) code level: Dept
An object is an instance of a class (a specific thing) the code layer: DEPT5. Encapsulation is the security of protecting some private fields. Embodiment 2: Put the method and the field into a container (class). 6. Automatic attributes
Note: When we do not need to make a logical decision, he is equivalent to the private field + common attributes.
Automatic attribute Bottom generation: Private field + Public property
Depth. NET Framework