- Method
- Access modifier: static,virtual,extern,override,new
- 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.
- Normal class
- field
- property: Get/set
- Method
- constructor
- destructor/garbage collection
- this keyword/reference for the current instance
- 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 |
- Abstract class
- Inherited
C # Learning notes