/// <summary> /// Searches for the specified RssChannel and returns the zero-based index of the first occurrence within the entire RssChannelCollection. /// </summary> /// <param name="rssChannel"> The RssChannel to locate in the RssChannelCollection. </param> /// <returns> The zero-based index of the first occurrence of RssChannel within the entire RssChannelCollection, if found; otherwise, -1. </returns> public int IndexOf(RssChannel.RssChannel rssChannel) { return(this.List.IndexOf(rssChannel)); }
/// <summary> /// Determines whether the RssChannelCollection contains a specific element. /// </summary> /// <param name="rssChannel"> The RssChannel to locate in the RssChannelCollection. </param> /// <returns> true if the RssChannelCollection contains the specified value; otherwise, false. </returns> public bool Contains(RssChannel.RssChannel rssChannel) { return(this.List.Contains(rssChannel)); }
/// <summary> /// Removes a specified channel from this collection. /// </summary> /// <param name="channel"> The channel to remove. </param> public void Remove(RssChannel.RssChannel channel) { this.List.Remove(channel); }
/// <summary> /// Adds a specified channel to this collection. /// </summary> /// <param name="channel"> The channel to add. </param> /// <returns> The zero-based index of the added channel. </returns> public int Add(RssChannel.RssChannel channel) { return(this.List.Add(channel)); }
/// <summary> /// Inserts a channel into this collection at a specified index. /// </summary> /// <param name="index"> The zero-based index of the collection at which to insert the channel. </param> /// <param name="channel"> The channel to insert into this collection. </param> public void Insert(int index, RssChannel.RssChannel channel) { this.List.Insert(index, channel); }