C # Learning Note 01

Source: Internet
Author: User

    • Method
      1. Access modifier: static,virtual,extern,override,new
      2. Declaring methods
        • The difference between a static method and an instantiation method is that if it is not a method of a class or interface, only the method that has no relation to them is static.
    • Managed

Managed code: Code that is executed by the common language runtime environment (not directly by the operating system) managed. Managed code applications can obtain common language runtime services, such as automatic garbage collection, runtime type checking, and security support. These services help provide platform-and language-independent, unified managed-code application behavior. Unmanaged code-unmanaged code: An outside of the common language runtime environment that is executed directly by the operating system. Unmanaged code must provide its own garbage collection, type checking, security support, and other services, unlike managed code, which obtains these services from the common language runtime. The English name of the unmanaged code is unmanaged code, which is directly executed by the operating system outside the common language runtime environment.

    • Class
      1. Normal class
        1. field
        2. property: Get/set
        3. Method
        4. constructor
        5. destructor/garbage collection
        6. this keyword/reference for the current instance
        7. class member accessibility: pubic,private,protected,internal,protected internal
Pubic Member public access, without any restrictions
Private Member private access is the lowest level of access allowed, and private members are accessible only in the class in which they are declared.
Protected A class member is declared as protected, and only derived classes that use the class as a base class can access the member
Internal Member access is internal, and members of the internal type are accessible only in files of the same assembly
protected internal Only derived classes in the same assembly can access this member

      1. Abstract class
      2. Inherited
    • Interface

C # Learning notes

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.