/// <summary> /// Removes a SortSpecification item to the collection. /// </summary> /// <param name="item">The item to remove.</param> public void Remove(SortSpecification item) { if (item == null) { throw new ArgumentNullException("item"); } List.Remove(item); }
/// <summary> /// Adds a SortSpecification instance to the collection. /// </summary> /// <param name="item">The item to add.</param> public void Insert(int index, SortSpecification item) { if (item == null) { throw new ArgumentNullException("item"); } List.Insert(index, item); }
/// <summary> /// Adds a SortSpecification instance to the collection. /// </summary> /// <param name="item">The item to add.</param> public int Add(SortSpecification item) { if (item == null) { throw new ArgumentNullException("item"); } return(List.Add(item)); }
/// <summary> /// Discovers if the given item is in the collection. /// </summary> /// <param name="item">The item to find.</param> /// <returns>Returns true if the given item is in the collection.</returns> public bool Contains(SortSpecification item) { if (IndexOf(item) == -1) { return(false); } else { return(true); } }
/// <summary> /// Returns the index of the item in the collection. /// </summary> /// <param name="item">The item to find.</param> /// <returns>The index of the item, or -1 if it is not found.</returns> public int IndexOf(SortSpecification item) { return(List.IndexOf(item)); }