P
Paul
I would like to be able to walk an object and set any properties in the
object at runtime. By 'any' I mean any regardless of their type.
I've gotten reflection working and I can get simple string or numeric
types to work with SetValue, but I'm unsure how to get much further
than that. As just one example, how can I set WebControls.Unit
dynamically? I realize I can create an isntance of that type, but
remember I want to do this at runtime without prior knowledge of the
type.
I'm guessing I need to walk the types and if it is a class type than
build an interface that allows changing properties that I find by
recursively walking it etc.
Any input appreciated...
object at runtime. By 'any' I mean any regardless of their type.
I've gotten reflection working and I can get simple string or numeric
types to work with SetValue, but I'm unsure how to get much further
than that. As just one example, how can I set WebControls.Unit
dynamically? I realize I can create an isntance of that type, but
remember I want to do this at runtime without prior knowledge of the
type.
I'm guessing I need to walk the types and if it is a class type than
build an interface that allows changing properties that I find by
recursively walking it etc.
Any input appreciated...