First of all, let's establish that there is no technical difference between the two. public in C# means “accessible to anyone who can see the class”; making a public member of an internal class does not make the member more accessible than making it internal would. There are good arguments for both sides.
Sep 15, 2014
Apr 1, 2010 · A public member is still just internal when in an internal class. From MSDN: The accessibility of a member can never be greater than the ...
People also ask
What is internal vs public in C#?
What is the difference between internal and public interface in C#?
What is the difference between public and private in C#?
When to use internal in C#?
Apr 11, 2024 · public: Code in any assembly can access this type or member. · private: Only code declared in the same class or struct can access this member.
Feb 11, 2014 · The short answer is that it doesn't matter. Public methods of an internal class are internal. To the compiler, the internal/public method ...
Mar 30, 2024 · The internal keyword is an access modifier for types and type members. This page covers internal access. The internal keyword is also part of ...
In C#, internal and public are access modifiers used to control the access level of members (classes, methods, properties, fields, etc.).
Mar 12, 2024 · Access modifiers are keywords used to specify the declared accessibility of a member or a type. This section introduces the five access ...
Jul 14, 2023 · In the following example, PublicClass is a public class, and PublicProperty is a public property. Both can be accessed from outside the class.
Nov 9, 2019 · The behavior of "internal" members is somewhere between "public" and "protected". Like "protected", a member marked "internal" must be ...