What is the difference between the internal
and private
access modifiers in C#?
C# – Internal vs. Private Access Modifiers
access-modifierscinternalnetprivate
Related Topic
- C# – How to enumerate an enum
- Java – the difference between public, protected, package-private and private in Java
- C# – What are the correct version numbers for C#
- C# – In C#, what is the difference between public, private, protected, and having no access modifier
- .net – Difference between decimal, float and double in .NET
- C# – ‘Static readonly’ vs. ‘const’
- Php – the difference between public, private, and protected
- .net – Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction
Best Answer
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).