|
-
October 15th, 2010, 02:34 AM
#1
Reflecting on private static method
Hey,
First of all this is not some normal action I would want to do, however this fringe case involves alot of legacy code I cannot touch, and unit tests that need to be written for newer stuff.
Anyway I have a class and i can get access to all fields and methods through reflection, except private/protected static ones. So is there any way to get access to a private static method through reflection?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|