jeudi 26 mars 2015

get property from resource class when both names are given by string at runtime

I have a resource class [Resource1] which contains some string properties. Normally, those properties can be accessed by:



string myValue = Resource1.Value1;


Now, both the class name (Full) and property name is given (as string) at runtime. So can I please ask how can I update the code to make it work?



string myValue = "Resource1"."Value1";


Thanks in advance.


Sun






Aucun commentaire:

Enregistrer un commentaire