C# ConfigurationManager Write Existing Custom Section
Posted on 2012-04-09
So I have an application that I need to have a portable configuration file for. I have started using the ConfigurationManager object for this, and have gotten it to read an existing Custom Section, and even create a default one if there is no Custom Section meeting my name, but I can't seem to figure out how to be able to write changed values to an existing Custom Section using ConfigurationManager. I would like to allow the user to update values as needed without editing the .config XML directly, and so far I only see that I can do this using the AppSettings section. Anyone have an idea of how to do this using ConfigurationManager?