NSoft.NFramework.Nini.Config.IniConfigSource.RemoveConfigs C# (CSharp) Method

RemoveConfigs() private method

Removes all configs that are not in the newly loaded INI doc.
private RemoveConfigs ( ) : void
return void
        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);
                }
            }
        }