1.. NET primary Learning

Source: Internet
Author: User
Tags naming convention virtual environment

The 1..NET framework structure consists primarily of 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, the. NET Framework is in the Microsoft.NET

The Foundation 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

And so on) to create an ASP.

or Windows form (possibly called linux forms) application functionality, 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 the operating system to execute. Not just C. #语言, 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 (MANAGED CODE), all Managed code are run 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 safety (type checker), garbage collection (garbage collector), exception handling (exception  Manager), backwards compatible (com marshaler), etc., 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's operating platform be a  windows system, as long as it is a system capable of supporting its runtime. Can be run on top. 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 at a speed, the CLR automatically releases what they occupyMemory. 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. The self-describing component can greatly simplify the development and configuration of the system 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, which 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, the base Class library can be called and extended by various languages, i.e.  C#,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

1.. NET primary Learning

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.