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
 
Back
Top