Exemple #1
0
 /// <summary>
 /// Adds the elements of another LogicExpressionCollection to the end of this LogicExpressionCollection.
 /// </summary>
 /// <param name="items">
 /// The LogicExpressionCollection whose elements are to be added to the end of this LogicExpressionCollection.
 /// </param>
 public virtual void AddRange(LogicExpressionCollection items)
 {
     foreach (ILogicExpression item in items)
     {
         this.List.Add(item);
     }
 }
Exemple #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="collection"></param>
 public Enumerator(LogicExpressionCollection collection)
 {
     this.wrapped = ((CollectionBase)collection).GetEnumerator();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the LogicExpressionCollection class, containing elements
 /// copied from another instance of LogicExpressionCollection
 /// </summary>
 /// <param name="items">
 /// The LogicExpressionCollection whose elements are to be added to the new LogicExpressionCollection.
 /// </param>
 public LogicExpressionCollection(LogicExpressionCollection items)
 {
     this.AddRange(items);
 }
Exemple #4
0
 public virtual void Visit(LogicExpressionCollection collection)
 {
     bool firstElement = true;
     foreach (LogicExpression expression in collection)
     {
         if (!firstElement)
             _Query.Append(AND);
         expression.Accept(this);
         firstElement = false;
     }
 }