Finding class members

  • Thread starter Thread starter dg
  • Start date Start date
D

dg

Is there a way in a foreach loop to list all members of a
class??? If so, how....
 
dg said:
Is there a way in a foreach loop to list all members of a
class??? If so, how....

Yes, via reflection. Look at Type.GetFields etc.
 

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