Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
start:visualstudio2017:programmieren:dotnetvererbungsbaum [2023/07/17 20:39] wikiadmin |
start:visualstudio2017:programmieren:dotnetvererbungsbaum [2023/07/17 21:06] wikiadmin |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Class Access Modifiers ====== | ====== Class Access Modifiers ====== | ||
- | ^x1^x2^x3^ | + | ^Access Modifier^Description^ |
- | |< | + | |private|Member is accessible inside the type only. This is the default.| |
- | graph TD; | + | |internal|Member is accessible inside the type and any type in the same assembly.| |
- | A-->B; | + | |protected|Member is accessible inside the type and any type that inherits from the type.| |
- | </ | + | |public|Member is accessible every where.| |
- | |< | + | |internal, protected|Memeber is accessible inside the type, any type in the same assembly, and any type that inherits from the type. Equivalent to a fictional access modifier named internal_or_protected.| |
+ | |private, protected|Memeber is accessible inside the type and any type that inherits from the type and is in the same assembly. Equivalent to a fictional access modifier named internal_and_protected. This combination is only available with C# 7.2 or later.| | ||