/// <summary> /// Add element into the collection. /// </summary> /// <param name="element">a <see cref="UrlElement"/> to add to the collection.</param> /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception> public void Add(UrlElement element) { if (element == null) { throw new ArgumentNullException("element"); } BaseAdd(element); }
/// <summary> /// Gets the index of the specific element inside the collection. /// </summary> /// <param name="element">a <see cref="UrlElement"/> to locate in the the collection.</param> /// <returns>The index of the element in the collection.</returns> /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception> public int IndexOf(UrlElement element) { if (element == null) { throw new ArgumentNullException("element"); } return(BaseIndexOf(element)); }
/// <summary> /// Removes a <see cref="UrlElement"/> from the collection. /// </summary> /// <param name="element">a <see cref="UrlElement"/> to remove from the collection.</param> /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception> public void Remove(UrlElement element) { if (element == null) throw new ArgumentNullException("element"); if (BaseIndexOf(element) >= 0) BaseRemove(element.Url); }
/// <summary> /// Gets the index of the specific element inside the collection. /// </summary> /// <param name="element">a <see cref="UrlElement"/> to locate in the the collection.</param> /// <returns>The index of the element in the collection.</returns> /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception> public int IndexOf(UrlElement element) { if (element == null) throw new ArgumentNullException("element"); return BaseIndexOf(element); }
/// <summary> /// Add element into the collection. /// </summary> /// <param name="element">a <see cref="UrlElement"/> to add to the collection.</param> /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception> public void Add(UrlElement element) { if (element == null) throw new ArgumentNullException("element"); BaseAdd(element); }
/// <summary> /// Removes a <see cref="UrlElement"/> from the collection. /// </summary> /// <param name="element">a <see cref="UrlElement"/> to remove from the collection.</param> /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception> public void Remove(UrlElement element) { if (element == null) throw new ArgumentNullException("element"); if (BaseIndexOf(element) >= 0) BaseRemove(element.Url); }