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