mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-06 10:56:41 +00:00
csharp: add file
access modifier notes
This commit is contained in:
parent
6cbfe4f7a8
commit
afa2321103
1 changed files with 1 additions and 0 deletions
|
@ -1341,6 +1341,7 @@ protected // visible only to the same class and extending classes
|
|||
internal // available for use only within the assembly (default for classes)
|
||||
protected internal // can be accessed by any code in the assembly in which it's declared, or from within a derived class in another assembly
|
||||
private protected // can be accessed only within its declaring assembly, by code in the same class or in a type that is derived from that class
|
||||
file // can be accessed only in the same file in which is declared. Will not clash with other classes/method/interface with the same name
|
||||
|
||||
readonly // value can be read but not modified
|
||||
static // not of the instance of a class
|
||||
|
|
Loading…
Add table
Reference in a new issue