Hi..
Ques : Describe the accessibility modifier protected internal.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 18, 2012, 11:03 AM EST
'protected internal' (or 'internal protected') when applied to a class member means that the member is accessible from anywhere in the current assembly or by classes in other assemblies which inherit from the class containing the member.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 18, 2012, 6:09 PM EST
The type or member can be accessed by any code in the assembly in which it is declared, or from within a derived class in another assembly. Access from another assembly must take place within a class declaration that derives from the class in which the protected internal element is declared, and it must take place through an instance of the derived class type.
please refer example.http://haacked.com/archive/2007/10/29/what-does-protected-internal-mean.aspx
hope this help.
Datta KharadRank #2,135 · 668 reputationPosted Jan 18, 2012, 7:54 PM EST
protected internal:-
"The type or member can be accessed by any code in the same assembly, or by any derived class in another assembly". It means that we can access a "protected internal" method by accessing any instance of it's class in the same assembly, in any class in different assembly which derives from the class, but we won't be able to access the method by accessing an instance of it's class in different assembly.
For more detail see below link:-
http://kossovsky.net/index.php/2009/06/cshar-protected-internal/