Example #1
0
        public void RemoveConfigSection(string configSectionName)
        {
            var configSection = FindConfigSection(configSectionName);

            if (configSection == null)
            {
                return;
            }

            ConfigSections.Remove(configSection);
        }
Example #2
0
 public void RemoveConfigSections(string configSectionName)
 {
     var toRemove = GetConfigSections(configSectionName).ToArray();
     toRemove.ForEach(section => ConfigSections.Remove(section));
 }