
Exposing Properties collection in custom classes as many MS Classes do
I would like to expose a Properties collection in my custom objects that
would provide the following functionality.
1) Automatically discover the Properties of the custom object to which it
belongs.
2) Allow iterating the Properties of the custom object using the For Each
syntax
3) Allow Retreiving/Setting the properties of the custom object using the
item method of the exposed properties collection.
4) Allow the Retreiving/Setting/Iteration of simple Key/Value properties.
Where can I get information and examples on exposing a properties
collection in custom classes as many MS classes do?