/// <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); } }
/// <summary> /// /// </summary> /// <param name="collection"></param> public Enumerator(LogicExpressionCollection collection) { this.wrapped = ((CollectionBase)collection).GetEnumerator(); }
/// <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); }
public virtual void Visit(LogicExpressionCollection collection) { bool firstElement = true; foreach (LogicExpression expression in collection) { if (!firstElement) _Query.Append(AND); expression.Accept(this); firstElement = false; } }