I have several properties stored in my AppConfig, and now I want to access them dynamically (for example, in a loop or function).
Accessing values ββusing MySettings.NAME_OF_THAT_THING is not a problem, but what if the variable name?
I tried:
String propertyValue = MySettings.GetType().GetProperty("NAME_OF_THAT_THING").ToString();
But the only thing I got is the name of the property. How can i do this?
source share