| Start | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Access Modifiers Diagrams Here are all access modifiers in venn diagrams, from more limiting to more accessible:
Below you could find more information. |
||||||||||||||||||
| public The |
||||||||||||||||||
| private The |
||||||||||||||||||
| internal The internal keyword makes a class (including nested classes), property, method or field available to every consumer in the same assembly: This can be broken to allow a testing assembly to access the code via adding code to AssemblyInfo.cs file: |
||||||||||||||||||
| protected The |
||||||||||||||||||
| protected internal The Assembly 1 Assembly 2 RemarksIf the access modifier is omitted,
Access modifiers on setters or getters of properties can only restrict access, not widen it:
|
Read Article
https://develop.horje.com/learn/1434/reference