/// <summary> /// Returns an unique identifier which can be used to identify this <see cref="EnvironmentNodeMergeElement"/> instance within its collection. /// </summary> /// <param name="element">The <see cref="EnvironmentNodeMergeElement"/> to return an identier for.</param> /// <returns>An <see cref="Object"/> that acts as the key for the specified <see cref="EnvironmentNodeMergeElement"/>.</returns> protected override object GetElementKey(ConfigurationElement element) { EnvironmentNodeMergeElement environmentNodeMerge = element as EnvironmentNodeMergeElement; if (environmentNodeMerge != null) { return(environmentNodeMerge.ConfigurationNodePath); } throw new InvalidOperationException(); }
/// <summary> /// Adds an instance of <see cref="EnvironmentNodeMergeElement"/> to the collection. /// </summary> /// <param name="mergeNode">An instance of <see cref="EnvironmentNodeMergeElement"/>.</param> public void Add(EnvironmentNodeMergeElement mergeNode) { base.BaseAdd(mergeNode); }