/// <summary> /// Adds the elements of an array to the end of this TopicNameCollection. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the end of this TopicNameCollection. /// </param> public virtual void AddRange(TopicName[] items) { foreach (TopicName item in items) { this.List.Add(item); } }
/// <summary> /// Adds an instance of type TopicName to the end of this TopicNameCollection. /// </summary> /// <param name="rawValue"> /// The TopicName to be added to the end of this TopicNameCollection. /// </param> public virtual void Add(TopicName value) { this.List.Add(value); }
/// <summary> /// Initializes a new instance of the TopicNameCollection class, containing elements /// copied from an array. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the new TopicNameCollection. /// </param> public TopicNameCollection(TopicName[] items) { this.AddRange(items); }
/// <summary> /// Removes the first occurrence of a specific TopicName from this TopicNameCollection. /// </summary> /// <param name="rawValue"> /// The TopicName rawValue to remove from this TopicNameCollection. /// </param> public virtual void Remove(TopicName value) { this.List.Remove(value); }
/// <summary> /// Inserts an element into the TopicNameCollection at the specified index /// </summary> /// <param name="index"> /// The index at which the TopicName is to be inserted. /// </param> /// <param name="rawValue"> /// The TopicName to insert. /// </param> public virtual void Insert(int index, TopicName value) { this.List.Insert(index, value); }
/// <summary> /// Return the zero-based index of the first occurrence of a specific rawValue /// in this TopicNameCollection /// </summary> /// <param name="rawValue"> /// The TopicName rawValue to locate in the TopicNameCollection. /// </param> /// <returns> /// The zero-based index of the first occurrence of the _ELEMENT rawValue if found; /// -1 otherwise. /// </returns> public virtual int IndexOf(TopicName value) { return this.List.IndexOf(value); }
/// <summary> /// Determines whether a specfic TopicName rawValue is in this TopicNameCollection. /// </summary> /// <param name="rawValue"> /// The TopicName rawValue to locate in this TopicNameCollection. /// </param> /// <returns> /// true if rawValue is found in this TopicNameCollection; /// false otherwise. /// </returns> public virtual bool Contains(TopicName value) { return this.List.Contains(value); }