Example #1
0
 /// <summary>
 /// Adds the elements of an array to the end of this ExpressionList.
 /// </summary>
 /// <param name="items">
 /// The array whose elements are to be added to the end of this ExpressionList.
 /// </param>
 public virtual void AddRange(Expression[] items)
 {
     foreach (Expression item in items)
     {
         this.List.Add(item);
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the ExpressionList class, containing elements
 /// copied from an array.
 /// </summary>
 /// <param name="items">
 /// The array whose elements are to be added to the new ExpressionList.
 /// </param>
 public ExpressionCollection(Expression[] items)
 {
     this.AddRange(items);
 }
Example #3
0
 /// <summary>
 /// Adds an instance of type Expression to the end of this ExpressionList.
 /// </summary>
 /// <param name="value">
 /// The Expression to be added to the end of this ExpressionList.
 /// </param>
 public virtual void Add(Expression value)
 {
     this.List.Add(value);
 }
Example #4
0
        public Expression[] ToArray()
        {
            Expression[] exps = new Expression[Count];
            for (int i=0; i<this.Count; i++)
                exps[i] = this[i];

            return exps;
        }
Example #5
0
 /// <summary>
 /// Removes the first occurrence of a specific Expression from this ExpressionList.
 /// </summary>
 /// <param name="value">
 /// The Expression value to remove from this ExpressionList.
 /// </param>
 public virtual void Remove(Expression value)
 {
     this.List.Remove(value);
 }
Example #6
0
 /// <summary>
 /// Inserts an element into the ExpressionList 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, Expression value)
 {
     this.List.Insert(index, value);
 }
Example #7
0
 /// <summary>
 /// Return the zero-based index of the first occurrence of a specific value
 /// in this ExpressionList
 /// </summary>
 /// <param name="value">
 /// The Expression value to locate in the ExpressionList.
 /// </param>
 /// <returns>
 /// The zero-based index of the first occurrence of the _ELEMENT value if found;
 /// -1 otherwise.
 /// </returns>
 public virtual int IndexOf(Expression value)
 {
     return this.List.IndexOf(value);
 }
Example #8
0
 /// <summary>
 /// Determines whether a specfic Expression value is in this ExpressionList.
 /// </summary>
 /// <param name="value">
 /// The Expression value to locate in this ExpressionList.
 /// </param>
 /// <returns>
 /// true if value is found in this ExpressionList;
 /// false otherwise.
 /// </returns>
 public virtual bool Contains(Expression value)
 {
     return this.List.Contains(value);
 }