C# Property with variable sub properties

IllimaDaw

New Member
Is it possible to create a property in C# that has a variable number of sub properties and then generate them via xml? Example below\[code\]Question.Name = "cake";Question.Type = "radio";foreach(Option option in xmloptions){ Question...........}\[/code\]So what I am getting at is if xmloptions had 5 options on one question then 4 on the next. Could I populate those as such in the property I create to house the questions? And if so how can I enumerate them?Forgive me if that makes no sense......
 
Back
Top