Possible Duplicate:
Get property value from string using reflection in C#
say, classA
has properties A,B,C,D,E.. I wanna build a method StringToProperty
so that StringToProperty("A")
returns A.
I guess it can be done by reflection, but i have no knowledge of it now. Any simple examples?
THx, i will close it, plz vote to close