Access Modifiers (C# Reference)
Access modifiers are keywords used to specify the declared accessibility of a member or a type. This section introduces the four access modifiers:
The following five accessibility levels can be specified using the access modifiers:
public: Access is not restricted.
protected: Access is limited to the containing class or types derived from the containing class.
Internal: Access is limited to the current assembly.
protected internal: Access is limited to the current assembly or types derived from the containing class.
private: Access is limited to the containing type.
This section also introduces the following:
Accessibility Levels: Using the four access modifiers to declare five levels of accessibility.
Accessibility Domain: Specifies where, in the program sections, a member can be referenced.
Restrictions on Using Accessibility Levels: A summary of the restrictions on using declared accessibility levels.
See Also
Reference
Access Modifiers (C# Programming Guide)
Access Keywords (C# Reference)