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