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