Click here to Skip to main content
16,011,608 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can we access protected fields another assembley that class having relation ship with base class another assembley
Posted
Comments
Sergey Alexandrovich Kryukov 26-Feb-13 1:05am    
What prevents you from 1) reading it from documentation, 2) just trying it out. If you think other members have more time than you do, think again...
—SA
sandeep207 26-Feb-13 1:11am    
http://stackoverflow.com/questions/7000871/internal-protected-property-still-accessible-from-a-different-assembly

Yes, you can. Please see:
http://msdn.microsoft.com/en-us/library/ms173121%28v=vs.110%29.aspx[^].

In addition, you should also understand that, despite the limitations introduced by the access modifiers, you can access absolutely every type or member using reflection:
http://en.wikipedia.org/wiki/Reflection_%28computer_programming%29[^],
http://msdn.microsoft.com/en-us/library/system.reflection.aspx[^].

—SA
 
Share this answer
 
Pleae go through below url for concept of protected field
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900