HiveBrain v1.2.0
Get Started
← Back to all entries
principlecsharpCritical

Internal vs. Private Access Modifiers

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
privatemodifiersinternalaccess

Problem

What is the difference between the internal and private access modifiers in C#?

Solution

internal is for assembly scope (i.e. only accessible from code in the same .exe or .dll)

private is for class scope (i.e. accessible only from code in the same class).

Context

Stack Overflow Q#3813485, score: 621

Revisions (0)

No revisions yet.