Is there any way to access private members in inheritance chain.
> Is there any way to access private members in inheritance chain.
Any way? Yes, of course.
But if you're asking whether there's a way to write code that at compile
time explicitly refers to private members, the answer is no. And you
should think very carefully before bypassing the language features that
block access to private members. And if you find after thinking carefully
that you still want to do it, you should think carefully again.
If after all of that, you still insist on doing such a dastardly deed,
you'll want to look at the System.Reflection namespace for specific
classes that can help you do it properly (inasmuch as there's any way to
do it properly).
Pete
Gjoshi029 - 31 Mar 2008 06:34 GMT
On Mar 31, 10:25 am, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> > Is there any way to access private members in inheritance chain.
>
[quoted text clipped - 12 lines]
>
> Pete
Thanks for your help.
Girish