ReflectionPermission

  • Thread starter Thread starter MMJ
  • Start date Start date
M

MMJ

I just wanted to know if someone can tell me how to use the
ReflectionPermission Class. What I am trying to do is I am trying to
list out all the Private as well as protected members of the class
using Reflection but by default I get only Public member, I think I
need to use proper Reflection permission to get access to Private as
well as Protected member but how to use the ReflectionPermission Class
Thanks for the help in advance
MMJ
 
What I am trying to do is I am trying to
list out all the Private as well as protected members of the class
using Reflection but by default I get only Public member,

Do you include BindingFlags.NonPublic in whatever reflection Get
method you're calling (Type.GetMembers for example)?

I think I
need to use proper Reflection permission to get access to Private as
well as Protected member but how to use the ReflectionPermission Class

I don't think that will help you.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top