/// <summary> /// Removes a ProjectStore item to the collection. /// </summary> /// <param name="item">The item to remove.</param> internal void Remove(ProjectStore item) { if (item == null) { throw new ArgumentNullException("item"); } List.Remove(item); }
/// <summary> /// Inserts a ProjectStore instance into the collection. /// </summary> /// <param name="item">The item to add.</param> internal void Insert(int index, ProjectStore item) { if (item == null) { throw new ArgumentNullException("item"); } List.Insert(index, item); }
/// <summary> /// Adds a ProjectStore instance to the collection. /// </summary> /// <param name="item">The item to add.</param> internal int Add(ProjectStore item) { if (item == null) { throw new ArgumentNullException("item"); } return(List.Add(item)); }
internal ProjectStoreListItem(ProjectStore store) { if (store == null) { throw new ArgumentNullException("store"); } _store = store; }
/// <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> internal bool Contains(ProjectStore 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> internal int IndexOf(ProjectStore item) { return(List.IndexOf(item)); }