My web config is as follows:
<appSettings>
<add key="One" value="1" xdt:Transform="Insert"/>
</appSettings>
If I need to access the value 1, I can write the below code:
ConfigurationManager.AppSettings("One");
But if the web config is like,
<countryAppSettings>
<add key="Two" value="2" xdt:Transform="Insert"/>
</countryAppSettings>
can I access the value in the following form, using a helper class for ConfigurationManager
class
ConfigurationManager.CountryAppSettings("Two");
Is this possible in c#?