/// <summary> /// Returns location of the <see cref="Item"/> object within collection. /// </summary> /// <param name="itemPrice"></param> /// <returns>Index of provided <see cref="Item"/> within collection.</returns> /// <remarks> /// This method determines equality by calling <see cref="Object.Equals(object)"/>. /// </remarks> public int IndexOf(ItemPrice itemPrice) { return(List.IndexOf(itemPrice)); }
/// <summary> /// Determines whether specified <see cref="Item"/> object is included in /// the collection. /// </summary> /// <param name="itemPrice"></param> /// <returns> /// True if provided ItemPrice object exists in the collection. False, otherwise. /// </returns> /// <remarks> /// This method determines equality by calling <see cref="Object.Equals(object)"/>. /// </remarks> public bool Contains(ItemPrice itemPrice) { return(List.Contains(itemPrice)); }
/// <summary> /// Inserts a <see cref="ItemPrice"/> object into the collection at specified location. /// </summary> /// <param name="index">The position into which the new element must be inserted.</param> /// <param name="itemPrice"></param> /// <remarks> /// Inserts a <see cref="ItemPrice"/> object object into inner list at specified index. /// </remarks> public void Insert(int index, ItemPrice itemPrice) { List.Insert(index, itemPrice); }
/// <summary> /// Removes <see cref="ItemPrice"/> object from the collection. /// </summary> /// <param name="itemPrice"></param> /// <remarks> /// Removes the first occurrence of a specific <see cref="ItemPrice"/> from the /// collection. /// </remarks> public void Remove(ItemPrice itemPrice) { List.Remove(itemPrice); }
/// <summary> /// Adds <see cref="ItemPrice"/> to the collection. /// </summary> /// <param name="itemPrice"></param> /// <returns>The position into which the new element was inserted.</returns> /// <remarks> /// Adds an <see cref="Item"/> object to the end of the collection. /// </remarks> public int Add(ItemPrice itemPrice) { return(List.Add(itemPrice)); }