Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 814 Bytes

ii.10.1.1-visibility-and-accessibility-attributes.md

File metadata and controls

14 lines (12 loc) · 814 Bytes

II.10.1.1 Visibility and accessibility attributes

ClassAttr ::= …
| nested assembly
| nested famandassem
| nested family
| nested famorassem
| nested private
| nested public
| private
| public

See Partition I. A type that is not nested inside another type shall have exactly one visibility (private or public) and shall not have an accessiblity. Nested types shall have no visibility, but instead shall have exactly one of the accessibility attributes nested assembly, nested famandassem, nested family, nested famorassem, nested private, or nested public. The default visibility for top-level types is private. The default accessibility for nested types is nested private.