Iterating through members of a class

  • Thread starter Thread starter Hananiel
  • Start date Start date
H

Hananiel

Is there a way to somehow iterate through an objects members as in :
MyClass myObject;
foreach ( object member in myObject)
DoSomeThingWith( member );

Thanks,
Hananiel
 
Charlie Williams response to your last posting of this question was what you
need.
 
Thank you. I missed it the first time.
-Hananiel
Daniel O'Connell said:
Charlie Williams response to your last posting of this question was what you
need.
 

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