Originally posted by Zaei
You know, using strings, you could actually add properties to properties...:
Code:
PropThing.AddProperty("Prop1")
PropThing.AddProperty("Prop1.Sub-Prop1")
PropThing.SetProperty("Prop1.Sub-Prop1", 10)
PropThing.SetProperty("Prop2", 20) ' adds a property under the hood
Simple. Since you are simply storing the property name as a string, Prop1, and Prop1.Sub-Prop1 are two unrelated properties... ::shrug:: might be useful =).

Z.
You sure could.

BTW: I like the idea behind the C++ object you mentioned. My only concern about it would be trying to access several properties in a row. Won't there be a performance hit as each query is executed?