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