Runtime Iteration of an Object's Members

  • Thread starter Thread starter αβθ-Coder
  • Start date Start date
Α

αβθ-Coder

Guest
It seems there must be a way to iterate all the members of an object at RT, as there's many instances whereby, at least I, could utilize this ability.

For example; instead of hard-coding all the properties of a Process such that I can record the name, value and type of each one, I want to use an iteration such as the following pseudo code demonstrates. (I put pseudo keywords in italics.):


For Each m As Member In Process
Select Case m.MemberType
Case Property
"Record property Name, Value and value type"
Case Method
"Record method name and details, such as arguments and return type"
End Select
Next

If anyone knows of such ability, I beforehand thank you very much for sharing your knowledge and thank everyone for reading my question! Have a great day and CHEERS from Clearwater, Florida!



Glenn T. Kitchen VB.NET Forums

Continue reading...
 
Back
Top