Created
July 22, 2012 17:36
-
-
Save hjerpbakk/3160414 to your computer and use it in GitHub Desktop.
Save config before
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ConfigurationFileMap = new ExeConfigurationFileMap() { ExeConfigFilename = "My.config" }; | |
var config = ConfigurationManager.OpenMappedExeConfiguration(ConfigurationFileMap, ConfigurationUserLevel.None); | |
if (config != null) | |
{ | |
// do stuff | |
config.Save(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment