Sunday, August 25, 2013

Get sub class properties

Basically, it sounds like you need to dynamically add properties to an instance of a class *and* you want to be able to bind these properties. Did I get that right?


Try doing a Google search on "C# dynamically add property to class instance". I found a lot of examples, although I personally have never done this, so I can't say for certain which way is best. Here are two results from the Google search that look promising:


http://stackoverflow.com/questions/6166236/add-properties-at-runtime


http://stackoverflow.com/questions/947241/how-do-i-create-dynamic-properties-in-c




~~Bonnie Berent DeWitt [C# MVP]


http://geek-goddess-bonnie.blogspot.com


No comments:

Post a Comment