Method:
1. When a method (static or instance) is JIT-compiled, the code snippet in memory is a global function and only one copy exists.
2. Method modifiers: protection level, static, virtual function, method signature: Return value, function name, parameter.
Constructor:
1. A method can have only one static constructor, default to private, and cannot add modifiers. Static constructors can only be called by the system to initialize static fields. The call occurs before an app domain can be called only once, before the type is used.
Access modifiers:
1. There are 5 types of access modifiers: private,public,internal,protected,protected internal.
2. Classes, interfaces, and structs that are declared directly in the namespace, can be public , internal, default to internal, struct member types can be public,internal,private, class members can be of type public, Protected,internal,private,protected internal; class and struct members default type is private; Interface members are always public. You cannot add an access modifier enumeration member is always public, and there is no access modifier; delegate similar structures and classes.
C # Programming Statement notes