Hi..
Ques : Describe the accessibility modifier protected internal.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Datta KharadPosted Jan 19, 2012, 12:54 AM
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/
Jignesh TrivediPosted Jan 18, 2012, 11:09 PM
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.
VulpesPosted Jan 18, 2012, 4:03 PM
'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.