/// <summary> /// Add element into the collection. /// </summary> /// <param name="file">The file to be added to the collection.</param> /// <exception cref="System.ArgumentNullException">Thrown if <paramref name="file"/> equals null.</exception> internal void Add(FileConfigElement file) { if (file == null) throw new ArgumentNullException("file"); BaseAdd(file); }
/// <summary> /// Gets the index of the specific element inside the collection. /// </summary> /// <param name="file">The file element being sought.</param> /// <returns>The index of the element.</returns> /// <exception cref="System.ArgumentNullException">Thrown if <paramref name="file"/> equals null.</exception> internal int IndexOf(FileConfigElement file) { if (file == null) throw new ArgumentNullException("file"); return BaseIndexOf(file); }
/// <summary> /// Add element into the collection. /// </summary> /// <param name="file">The file to be added to the collection.</param> /// <exception cref="System.ArgumentNullException">Thrown if <paramref name="file"/> equals null.</exception> internal void Add(FileConfigElement file) { if (file == null) { throw new ArgumentNullException("file"); } BaseAdd(file); }
/// <summary> /// Gets the index of the specific element inside the collection. /// </summary> /// <param name="file">The file element being sought.</param> /// <returns>The index of the element.</returns> /// <exception cref="System.ArgumentNullException">Thrown if <paramref name="file"/> equals null.</exception> internal int IndexOf(FileConfigElement file) { if (file == null) { throw new ArgumentNullException("file"); } return(BaseIndexOf(file)); }
/// <summary> /// Removes a <see cref="System.Configuration.ConfigurationElement"/> from the collection. /// </summary> /// <param name="file">The xml file to be removed from the collection.</param> /// <exception cref="System.ArgumentNullException">Thrown if <paramref name="file"/> equals null.</exception> internal void Remove(FileConfigElement file) { if (file == null) { throw new ArgumentNullException("file"); } if (BaseIndexOf(file) >= 0) { BaseRemove(file.Name); } }
/// <summary> /// Removes a <see cref="System.Configuration.ConfigurationElement"/> from the collection. /// </summary> /// <param name="file">The xml file to be removed from the collection.</param> /// <exception cref="System.ArgumentNullException">Thrown if <paramref name="file"/> equals null.</exception> internal void Remove(FileConfigElement file) { if (file == null) throw new ArgumentNullException("file"); if (BaseIndexOf(file) >= 0) BaseRemove(file.Name); }