public void RemoveConfigSection(string configSectionName) { var configSection = FindConfigSection(configSectionName); if (configSection == null) { return; } ConfigSections.Remove(configSection); }
public void RemoveConfigSections(string configSectionName) { var toRemove = GetConfigSections(configSectionName).ToArray(); toRemove.ForEach(section => ConfigSections.Remove(section)); }