public DeclaredTypeElement this[int index] { get { DeclaredTypeElement retval = (DeclaredTypeElement)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); } }
public int IndexOf(DeclaredTypeElement element) { if (element == null) { throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } return(BaseIndexOf(element)); }
public int IndexOf(DeclaredTypeElement element) { if (element == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } return(base.BaseIndexOf(element)); }
public void Add(DeclaredTypeElement element) { if (!this.IsReadOnly() && (element == null)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } this.BaseAdd(element); }
public void Remove(DeclaredTypeElement element) { if (!this.IsReadOnly() && (element == null)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } base.BaseRemove(this.GetElementKey(element)); }
public void Remove(DeclaredTypeElement element) { if (!this.IsReadOnly() && (element == null)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } base.BaseRemove(this.GetElementKey(element)); }
public int IndexOf(DeclaredTypeElement element) { if (element == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } return base.BaseIndexOf(element); }
public void Add(DeclaredTypeElement element) { if (!this.IsReadOnly() && (element == null)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } this.BaseAdd(element); }
public void Add(DeclaredTypeElement 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(DeclaredTypeElement 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 new DeclaredTypeElement this[string typeName] { get { if (String.IsNullOrEmpty(typeName)) { throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("typeName"); } DeclaredTypeElement retval = (DeclaredTypeElement)BaseGet(typeName); return(retval); } set { // Only validate input if config is not Read-Only, otherwise // let Add throw appropriate exception if (!this.IsReadOnly()) { if (String.IsNullOrEmpty(typeName)) { throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("typeName"); } if (value == null) { throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); } if (BaseGet(typeName) != null) { BaseRemove(typeName); } else { throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IndexOutOfRangeException(SR.GetString(SR.ConfigIndexOutOfRange, typeName))); } } Add(value); } }
public void Remove(DeclaredTypeElement element) { Remove((string)GetElementKey(element)); }
public int IndexOf(DeclaredTypeElement element) { return(BaseIndexOf(element)); }
public void Add(DeclaredTypeElement element) { BaseAdd(element); }
public void Remove (DeclaredTypeElement element) { Remove ((string) GetElementKey (element)); }
public int IndexOf (DeclaredTypeElement element) { return BaseIndexOf (element); }
public void Add (DeclaredTypeElement element) { BaseAdd (element); }
protected override ConfigurationElement CreateNewElement() { DeclaredTypeElement retval = new DeclaredTypeElement(); return retval; }
public int IndexOf(DeclaredTypeElement element) { if (element == null) { throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } return BaseIndexOf(element); }
protected override ConfigurationElement CreateNewElement() { DeclaredTypeElement retval = new DeclaredTypeElement(); return(retval); }