Answer by M463 for internal vs public in c#
Also, properties marked as internal will throw a BindingExpression path error if used for DataBinding in WPF. So those have to be public in order to work properly, even when the DataBinding takes place...
View ArticleAnswer by Leroy.P for internal vs public in c#
If you can Reference the assemble from outside , you have scope of Internal and public classes
View ArticleAnswer by Brian Rasmussen for internal vs public in c#
internal is also useful when writing unit tests. The InternalsVisibleTo attribute let's your test assembly access internal methods in your code assembly. I.e. you can test methods that appear private...
View ArticleAnswer by Tomas Jansson for internal vs public in c#
Public can also be accessed outside of the assembly. So when you have a class that shouldn't be accessed every class in the assembly should be able to access it, then internal is the right thing. If...
View ArticleAnswer by Program.X for internal vs public in c#
public is visible from wherever. internal is visible only within an assembly You tend to use internal only to protect internal APIs. For example, you could expose several overloads of a method: public...
View ArticleAnswer by Dr TJ for internal vs public in c#
internal is useful when you want to declare a member or type inside a DLL, not outside that... normally, when you declare a member as Public you can access that from other DLLs. but, if you needed to...
View Articleinternal vs public in c#
I want to know the difference between the public and internal visibility modifiers. When should we use internal on a class and when public? I am confused with when a method should be public or...
View ArticleAnswer by Wayne VanWeerthuizen for internal vs public in C#
In general, public methods should meet very high standards for robustness (not crashing or corrupting data due to bad input) and security awareness (not allowing unexpected input to trigger an...
View ArticleAnswer by ankit for internal vs public in C#
In a very simple language:Internal : you will only able to access within a assembly.for ex: if you have created a AccountService.csproj with internal classpublic interface IAccount{ int...
View Article