N
Nick
Hi all,
Just a quick question. I have a class that exposes a number of fields (which
are themselves custom types) through public properties.
At run time, I have an object whom I'd like to check, is of same type as one
of these fields.
Is there a method or technique for iterating through a class's public
properties, such as maybe using something from the reflection namespace?
This would probably be similar to iterating through the
System.Drawing.SystemColors class's properties.
Regards,
Nick
Just a quick question. I have a class that exposes a number of fields (which
are themselves custom types) through public properties.
At run time, I have an object whom I'd like to check, is of same type as one
of these fields.
Is there a method or technique for iterating through a class's public
properties, such as maybe using something from the reflection namespace?
This would probably be similar to iterating through the
System.Drawing.SystemColors class's properties.
Regards,
Nick