My question is regarding the AppConfig file. Basically I know how to retrieve the keys and values, but the question here is how can I delete the key and values or modify the values on a runtime?
<appSettings>
<add key="key1" value="value1" />
<add key="key2" value="value2" />
<add key="key3" value="value3" />
</appSettings>
So what if I want to modify:
And I want to have key1 with value set to Test so that I have <add key="key1" value="Test" />
And what if I want to delete;
Let presume I want to delete key3 to remove it from appSettings,
Any help would be welcome.
You can use something like this: