Another Refection question
Alan Baljeu <[email protected]> Thu, 15 Mar 2007 11:19:56 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <031201c76715$63ce5830$1dc80ac6@CTI> |
I have a class containing a bunch of static members with initializers and subclasses which also have static members and subclasses. The problem with static initializers is that they only fire when a class is referenced. In my case, I want to build a collection of all these static variables, making sure things are properly initialized. To do this, I think reflection on the class members is the most effective way. I have never used reflection before. Can someone tell me how to use reflection to retrieve static objects and classes from a class? =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com