S2 in depth. NET and C # programming one: Drill down into C #. NET Framework

Source: Internet
Author: User

Go deep into C #. NET Framework

One of the 1..NET frameworks recommends a code management platform, blog publishing platform git
Previous review:
Learning sites: Git
Github.com

2. Relationship between classes and objects Dept dept=new Dept ();
Parsing: A class is the type of object (big kind) code plane: Dept
An object is an instance of a class (a specific individual) the Code plane: Dept


3..NET Framework two main components: CLR (Common Language Runtime Common Language Runtime) and FCL (Framework class Library)

4. Class Library Concept: A collection of functionally similar classes.
Similar to the main program of QQ support class library, the end of the DLL file (dynamic linked library dynamically linked libraries)
Two kinds of embodiment of class library: exe DLL


Https://c.s-microsoft.com/zh-cn/CMSImages/Hero_Holiday_HomePage_1920x650.jpg

Https://www.baidu.com/img/bd_logo1.png


5. Encapsulation: is to protect some private field security. 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

Summarize:

1:. NET framework includes clr,fcl,ado.net,xml,asp.net.windows and Web service, etc.

2:CLR is the environment for all. NET applications. is all that. NET applications are the basis of programming to use

There are two main components in 3:CLR: Common type System (CTS) and Common Language Specification (CLS)

4:

5: Information about the namespace:

System: This namespace contains all of the other namespaces

System. Collection.generic: Supports generic operations

System.IO: Supports operations on files such as copy, delete, paste

System.Net: Support for programming of network protocols

Ststem.data: Provides access to classes that represent the ADO structure

System.Windows.Froms: for developing Windows applications

System.Drawing: Support for GDI + basic graphics operations

6: Package Benefits:

1: Ensure the security of data

2: Provide a sober external interface

3: The internal implementation of the class can be arbitrarily modified without affecting other classes

S2 in depth. NET and C # programming one: Drill down into C #. NET Framework

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.