R
Richy
Hi,
How do I indirectly set the property of a class? Example:
Dim MyClass as aClass
Dim MyProperty As String = "Name"
Dim MyValue As String = "Test"
I want to be able to set the property whose name is stored in
MyProperty, of the class MyClass, to the value in MyValue. So in this
example, this equates to:
MyClass.Name = "Test"
Do I have to use reflection?
Thanks,
Richy
How do I indirectly set the property of a class? Example:
Dim MyClass as aClass
Dim MyProperty As String = "Name"
Dim MyValue As String = "Test"
I want to be able to set the property whose name is stored in
MyProperty, of the class MyClass, to the value in MyValue. So in this
example, this equates to:
MyClass.Name = "Test"
Do I have to use reflection?
Thanks,
Richy