/// <summary> /// Adds a <see cref='WhereTerm'/> with the specified value to the /// <see cref='WhereTermCollection'/>. /// </summary> /// <param name='val'>The <see cref='WhereTerm'/> to add.</param> /// <returns>The index at which the new element was inserted.</returns> /// <seealso cref='WhereTermCollection.AddRange'/> public int Add(WhereTerm val) { return(List.Add(val)); }
/// <summary> /// Removes a specific <see cref='WhereTerm'/> from the <see cref='WhereTermCollection'/>. /// </summary> /// <param name='val'>The <see cref='WhereTerm'/> to remove from the <see cref='WhereTermCollection'/>.</param> /// <exception cref='ArgumentException'><paramref name='val'/> is not found in the Collection.</exception> public void Remove(WhereTerm val) { List.Remove(val); }
/// <summary> /// Returns the index of a <see cref='WhereTerm'/> in /// the <see cref='WhereTermCollection'/>. /// </summary> /// <param name='val'>The <see cref='WhereTerm'/> to locate.</param> /// <returns> /// The index of the <see cref='WhereTerm'/> of <paramref name='val'/> in the /// <see cref='WhereTermCollection'/>, if found; otherwise, -1. /// </returns> /// <seealso cref='WhereTermCollection.Contains'/> public int IndexOf(WhereTerm val) { return(List.IndexOf(val)); }
/// <summary> /// Inserts a <see cref='WhereTerm'/> into the <see cref='WhereTermCollection'/> at the specified index. /// </summary> /// <param name='index'>The zero-based index where <paramref name='val'/> should be inserted.</param> /// <param name='val'>The <see cref='WhereTerm'/> to insert.</param> /// <seealso cref='WhereTermCollection.Add'/> public void Insert(int index, WhereTerm val) { List.Insert(index, val); }
/// <summary> /// Gets a value indicating whether the /// <see cref='WhereTermCollection'/> contains the specified <see cref='WhereTerm'/>. /// </summary> /// <param name='val'>The <see cref='WhereTerm'/> to locate.</param> /// <returns> /// <see langword='true'/> if the <see cref='WhereTerm'/> is contained in the collection; /// otherwise, <see langword='false'/>. /// </returns> /// <seealso cref='WhereTermCollection.IndexOf'/> public bool Contains(WhereTerm val) { return(List.Contains(val)); }