all groups > dotnet general > february 2008 >
You're in the

dotnet general

group:

to enumerate all the members of a object



to enumerate all the members of a object M
2/28/2008 8:57:17 AM
dotnet general: 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

Re: to enumerate all the members of a object Jon Skeet [C# MVP]
2/28/2008 5:01:07 PM
[quoted text, click to view]

See Type.GetProperties.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
Re: to enumerate all the members of a object RobinS
3/1/2008 12:51:08 AM
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.
------------------------
[quoted text, click to view]
AddThis Social Bookmark Button