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