S2:.net

Source: Internet
Author: User

1.net Frame Structure

? Mainly contains the common language runtime (CLR) and 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

2. Structural body

1) Definition:

Access modifier struct struct name

{

Structural body

}

(1) Structs can have fields, methods, fields cannot be assigned initial values.

(2) can not new, but conditional, the struct has member variables and member methods, member variables are not assigned, call member methods, not new will error, so generally first new.

For example:

public struct Student

{

public int num;

public void Show ()

{

}

}

Section slightly Main ()

{

Student Stu;

Stu.num;

Stu.show (); No value assigned to member variable, error

}

Section slightly Main ()

{

Student Stu;

stu.num=10;

Stu.show (); Assign a value to a member variable without error

}

Section slightly Main ()

{

Student stu=new Student ();

Stu.num;

Stu.show (); New, no error.

}

3. Naming conventions

Introduction editing A. NET Framework type is the basis for building. NET applications, components, and controls. The types that the. NET Framework includes 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 conventions editing. NET Framework Types use 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-relationships between classes and objects Dept dept=new Dept (); Parsing: A class is the type of an object (a uniform kind with the same behavior and characteristics) The code plane: The Dept object is an instance of the class (a specific thing) code plane: Dept5. Encapsulation is the security of some private fields. Embodiment 2: The methodand fields into a container (class). 6. Automatic attribute 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

S2:.net

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.