×
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
People also ask
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.
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 ...