protected internal override void Reset(ConfigurationElement parentElement) { bool basic = IsBasic; ConfigurationElementCollection parent = (ConfigurationElementCollection)parentElement; for (int n = 0; n < parent.Count; n++) { ConfigurationElement parentItem = parent.BaseGet(n); ConfigurationElement item = CreateNewElementInternal(null); item.Reset(parentItem); BaseAdd(item); if (basic) { if (inherited == null) { inherited = new ArrayList(); } inherited.Add(item); } } if (IsAlternate) { inheritedLimitIndex = 0; } else { inheritedLimitIndex = Count - 1; } modified = false; }