/// <summary>Removes the specified <paramref name="element"/> from the collection.</summary>
 public void Remove(NamespaceConfigurationElement element)
 {
     if (this.BaseIndexOf(element) >= 0)
     {
         this.BaseRemove(element.Prefix);
     }
 }
示例#2
0
        /// <summary>Removes the specified <paramref name="element"/> from the collection.</summary>
        public void Remove(NamespaceConfigurationElement element)
        {
            if (element is null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            if (this.BaseIndexOf(element) >= 0)
            {
                this.BaseRemove(element.Prefix);
            }
        }
 /// <summary>Adds the specified <paramref name="element"/> to the collection.</summary>
 public void Add(NamespaceConfigurationElement element)
 {
     this.BaseAdd(element);
 }
 /// <summary>Returns the index of the specified <paramref name="element"/> in this collection.</summary>
 public Int32 IndexOf(NamespaceConfigurationElement element)
 {
     return(this.BaseIndexOf(element));
 }
        /// <summary>Constructs and initializes a new instance of <see cref="IgnoreNamespaceConfigurationElementCollection"/>.</summary>
        public IgnoreNamespaceConfigurationElementCollection()
        {
            NamespaceConfigurationElement element = new NamespaceConfigurationElement();

            this.BaseAdd(element, true);
        }