Search code examples
c#.netprivateaccess-modifiersinternal

Internal vs. Private Access Modifiers


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).