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