/// <summary> /// <para> Removes a specific <see cref='WorkItemSlot'/> from the /// <see cref='WorkItemSlotCollection'/> .</para> /// </summary> /// <param name='value'>The <see cref='WorkItemSlot'/> to remove from the <see cref='WorkItemSlotCollection'/> .</param> /// <returns><para>None.</para></returns> /// <exception cref='System.ArgumentException'><paramref name='value'/> is not found in the Collection. </exception> public void Remove(WorkItemSlot value) { List.Remove(value); }
/// <summary> /// <para> /// Initializes a new instance of <see cref='WorkItemSlot'/> objects. /// </para> /// </summary> /// <param name='value'> /// A array of <see cref='WorkItemSlot'/> objects with which to intialize the collection /// </param> public WorkItemSlotCollection(WorkItemSlot[] value) { AddRange(value); }
/// <summary> /// <para>Inserts a <see cref='WorkItemSlot'/> into the <see cref='WorkItemSlotCollection'/> at the specified index.</para> /// </summary> /// <param name='index'>The zero-based index where <paramref name='value'/> should be inserted.</param> /// <param name=' value'>The <see cref='WorkItemSlot'/> to insert.</param> /// <returns><para>None.</para></returns> /// <seealso cref='WorkItemSlotCollection.Add'/> /// <param name="value"></param> public void Insert(int index, WorkItemSlot value) { List.Insert(index, value); }
/// <summary> /// <para> Synchronically removes a specific <see cref='WorkItemSlot'/> from the /// <see cref='WorkItemSlotCollection'/> .</para> /// </summary> /// <param name='value'>The <see cref='WorkItemSlot'/> to remove from the <see cref='WorkItemSlotCollection'/> .</param> /// <returns><para>None.</para></returns> /// <exception cref='System.ArgumentException'><paramref name='value'/> is not found in the Collection. </exception> public void SynchronizedRemove(WorkItemSlot value) { lock (this) { List.Remove(value); } }
/// <summary> /// <para>Returns the index of a <see cref='WorkItemSlot'/> in /// the <see cref='WorkItemSlotCollection'/> .</para> /// </summary> /// <param name='value'>The <see cref='WorkItemSlot'/> to locate.</param> /// <returns> /// <para>The index of the <see cref='WorkItemSlot'/> of <paramref name='value'/> in the /// <see cref='WorkItemSlotCollection'/>, if found; otherwise, -1.</para> /// </returns> /// <seealso cref='WorkItemSlotCollection.Contains'/> public int IndexOf(WorkItemSlot value) { return List.IndexOf(value); }
/// <summary> /// <para>Copies the <see cref='WorkItemSlotCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the /// specified index.</para> /// </summary> /// <param name='array'><para>The one-dimensional <see cref='System.Array'/> that is the destination of the values copied from <see cref='WorkItemSlotCollection'/> .</para></param> /// <param name='index'>The index in <paramref name='array'/> where copying begins.</param> /// <returns> /// <para>None.</para> /// </returns> public void CopyTo(WorkItemSlot[] array, int index) { List.CopyTo(array, index); }
/// <summary> /// <para>Gets a value indicating whether the /// <see cref='WorkItemSlotCollection'/> contains the specified <see cref='WorkItemSlot'/>.</para> /// </summary> /// <param name='value'>The <see cref='WorkItemSlot'/> to locate.</param> /// <returns> /// <para><see langword='true'/> if the <see cref='WorkItemSlot'/> is contained in the collection; /// otherwise, <see langword='false'/>.</para> /// </returns> /// <seealso cref='WorkItemSlotCollection.IndexOf'/> public bool Contains(WorkItemSlot value) { return List.Contains(value); }
/// <summary> /// <para>Copies the elements of an array to the end of the <see cref='WorkItemSlotCollection'/>.</para> /// </summary> /// <param name='value'> /// An array of type <see cref='WorkItemSlot'/> containing the objects to add to the collection. /// </param> /// <returns> /// <para>None.</para> /// </returns> /// <seealso cref='WorkItemSlotCollection.Add'/> public void AddRange(WorkItemSlot[] value) { for (int i = 0; (i < value.Length); i = (i + 1)) { // WorkItemSlot nv = this.GetEntry(value[i].IdHash); // if (nv!=null) // { // nv = value[i]; // } // else // { Add(value[i]); // } } }
/// <summary> /// <para>Adds a <see cref='WorkItemSlot'/> with the specified value to the /// <see cref='WorkItemSlotCollection'/> .</para> /// </summary> /// <param name='value'>The <see cref='WorkItemSlot'/> to add.</param> /// <returns> /// <para>The index at which the new element was inserted.</para> /// </returns> public int Add(WorkItemSlot value) { return List.Add(value); }