public ParameterElement this[int index]
 {
     get
     {
         ParameterElement retval = (ParameterElement)BaseGet(index);
         return(retval);
     }
     set
     {
         // Only validate input if config is not Read-Only, otherwise
         // let BaseAdd throw appropriate exception
         if (!this.IsReadOnly())
         {
             if (value == null)
             {
                 throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
             }
             if (BaseGet(index) != null)
             {
                 BaseRemoveAt(index);
             }
         }
         BaseAdd(index, value);
     }
 }
Example #2
0
 public void Remove(ParameterElement element)
 {
     if (!this.IsReadOnly() && (element == null))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
     }
     base.BaseRemove(this.GetElementKey(element));
 }
Example #3
0
 public int IndexOf(ParameterElement element)
 {
     if (element == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
     }
     return(base.BaseIndexOf(element));
 }
Example #4
0
 public void Add(ParameterElement element)
 {
     if (!this.IsReadOnly() && (element == null))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
     }
     this.BaseAdd(element);
 }
 public int IndexOf(ParameterElement element)
 {
     if (element == null)
     {
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
     }
     return(BaseIndexOf(element));
 }
 public void Add(ParameterElement element)
 {
     // Only validate input if config is not Read-Only, otherwise
     // let BaseAdd throw appropriate exception
     if (!this.IsReadOnly())
     {
         if (element == null)
         {
             throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
         }
     }
     BaseAdd(element);
 }
 public void Add(ParameterElement element)
 {
     // Only validate input if config is not Read-Only, otherwise
     // let BaseAdd throw appropriate exception
     if (!this.IsReadOnly())
     {
         if (element == null)
         {
             throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
         }
     }
     BaseAdd(element);
 }
		public void Remove (ParameterElement element)
		{
			BaseRemove ((string) GetElementKey (element));
		}
		public int IndexOf (ParameterElement element)
		{
			return BaseIndexOf (element);
		}
		public void Add (ParameterElement element)
		{
			BaseAdd (element);
		}
 public void Remove(ParameterElement element)
 {
     BaseRemove((string)GetElementKey(element));
 }
 public int IndexOf(ParameterElement element)
 {
     return(BaseIndexOf(element));
 }
 public void Add(ParameterElement element)
 {
     BaseAdd(element);
 }
 protected override ConfigurationElement CreateNewElement()
 {
     ParameterElement retval = new ParameterElement();
     return retval;
 }
 public int IndexOf(ParameterElement element)
 {
     if (element == null)
     {
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
     }
     return BaseIndexOf(element);
 }
        protected override ConfigurationElement CreateNewElement()
        {
            ParameterElement retval = new ParameterElement();

            return(retval);
        }