System.Configuration.MgmtConfigurationRecord.GetDescendentSectionFactories C# (CSharp) Method

GetDescendentSectionFactories() private method

private GetDescendentSectionFactories ( string configKey ) : ArrayList
configKey string
return System.Collections.ArrayList
        private ArrayList GetDescendentSectionFactories(string configKey) {
            ArrayList sectionGroups = new ArrayList();

            string configKeyAncestor;
            if (configKey.Length == 0) {
                configKeyAncestor = string.Empty;
            }
            else {
                configKeyAncestor = configKey + "/";
            }

            foreach (FactoryId factoryId in SectionFactories.Values) {
                if (factoryId.Group == configKey || StringUtil.StartsWith(factoryId.Group, configKeyAncestor)) {
                    sectionGroups.Add(factoryId);
                }
            }

            return sectionGroups;
        }