Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 /// <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);
     }
 }
Пример #7
0
 /// <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);
 }