using Ant.Query.QueryState; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; namespace Ant.Query.QueryExpressions { class AggregateQueryExpression : QueryExpression { MethodInfo _method; ReadOnlyCollection _parameters; public AggregateQueryExpression(QueryExpression prevExpression, MethodInfo method, IList parameters) : base(QueryExpressionType.Aggregate, method.ReturnType, prevExpression) { this._method = method; this._parameters = new ReadOnlyCollection(parameters); } public MethodInfo Method { get { return this._method; } } public ReadOnlyCollection Parameters { get { return this._parameters; } } public override T Accept(QueryExpressionVisitor visitor) { return visitor.Visit(this); } } }