/// <summary> /// Determines whether the specified FeedItem is a member of the collection. /// </summary> /// <param name="value">The FeedItem to locate in the collection.</param> /// <returns>true if the FeedItem is a member of the collection; otherwise, false. </returns> public bool Contains(FeedItem value) { return(List.Contains(value)); }
/// <summary> /// Inserts an existing FeedItem in the feed item collection at the specified location. /// </summary> /// <param name="index"></param> /// <param name="value"></param> public void Insert(int index, FeedItem value) { List.Insert(index, value); }
/// <summary> /// Removes the specified FeedItem from the collection. /// </summary> /// <param name="value"></param> public void Remove(FeedItem value) { List.Remove(value); keyMaps.Remove(value.Id); }
/// <summary> /// Retrieves the index of the specified FeedItem in the collection. /// </summary> /// <param name="value"> The FeedItem to locate in the collection.</param> /// <returns>A zero-based index value that represents the position of the specified FeedItem in the FeedItemCollection . </returns> public int IndexOf(FeedItem value) { // Find the 0 based index of the requested entry return(List.IndexOf(value)); }