Access Modifiers

Classes and structs – private by default

Interfaces – internal by default

Public

Accessible everywhere with a reference to that class.

Private

Only accessible in the class which contains the method/property.

Internal

Accessible only to the namespace which contains the class/method/property.

Advertisements