private IConfigSection FindConfigSection(IConfigSection configSectionToFind) { foreach (var configSection in ConfigSections) { if (configSectionToFind.Equals(configSection)) { return(configSection); } } return(null); }