to enumerate all the members of a object

  • Thread starter Thread starter M
  • Start date Start date
M

M

I am wondering if there is a way to enumerate all the members of a object

For instance to list all the properties of System.drawing.color


Thanks
 
M said:
I am wondering if there is a way to enumerate all the members of a object

For instance to list all the properties of System.drawing.color

See Type.GetProperties.
 
Did you know if you enumerate all the properties of System.Drawing.Color,
you get all of hte system colors? I have code that does this if that's what
you're looking for.

RobinS.
GoldMail, Inc.
 
Back
Top