Visibility

Overview

Visibility is used by members and types to define from where a member can be used.

Location

Value Description
Assembly Assembly members are only accessible from within the same assembly
AssemblyAndProtected Assembly members are only accessible from within the same assembly and then only within the same class or sub classes
AssemblyOrProtected Assembly members are only accessible from within the same assembly or subclasses
None Default accessiblity: Usually public or assembly depending on the context.
Private The member is private, only accessible from within the same class or nested classes
Protected The member is protected, it's only accessible from within the same class or sub classes
Public The member is public, accessible from everywhere
Unit only accessible from the same file
UnitAndProtected only accessible from subclasses in the same file.
UnitOrProtected only accessible from subclasses or in the same file.