System.Configuration.SectionUpdates.FindSectionUpdates C# (CSharp) Метод

FindSectionUpdates() приватный Метод

private FindSectionUpdates ( string configKey, bool isGroup ) : SectionUpdates
configKey string
isGroup bool
Результат SectionUpdates
        private SectionUpdates FindSectionUpdates(string configKey, bool isGroup) {
            string group, dummy;

            if (isGroup) {
                group = configKey;
            }
            else {
                BaseConfigurationRecord.SplitConfigKey(configKey, out group, out dummy);
            }

            Debug.Assert(String.IsNullOrEmpty(_name), "FindSectionUpdates assumes search is from root record");
            SectionUpdates sectionUpdates = this;
            if (group.Length != 0) {
                // find the SectionUpdates for the group
                string [] groups = group.Split(BaseConfigurationRecord.ConfigPathSeparatorParams);
                foreach (string groupPart in groups) {
                    SectionUpdates sectionUpdatesChild = (SectionUpdates) sectionUpdates._groups[groupPart];
                    if (sectionUpdatesChild == null) {
                        sectionUpdatesChild = new SectionUpdates(groupPart);
                        sectionUpdates._groups[groupPart] = sectionUpdatesChild;
                    }

                    sectionUpdates = sectionUpdatesChild;
                }
            }

            return sectionUpdates;
        }