private void RemoveConfigs() { IConfig config = null; for(int i = Configs.Count - 1; i > -1; i--) { config = Configs[i]; // If the section is not present in the INI doc if(iniDocument.Sections[config.Name] == null) { Configs.Remove(config); } } }