public IEnumerable <DynamicOrdering> ParseOrdering(string ordering, object[] values, ParameterExpression[] parameters) { var parser = new ExtenedExpressionParser(parameters, ordering, values, _methodProviders, _surrogates); IEnumerable <DynamicOrdering> orderings = parser.ParseOrdering(); return(orderings); }
public LambdaExpression ParseLambda(ParameterExpression[] parameters, Type resultType, string expression, params object[] values) { if (expression == EMPTY_EXPRESSION) { return(Expression.Lambda(Expression.Constant(new object()), parameters)); } var parser = new ExtenedExpressionParser(parameters, expression, values, _methodProviders, _surrogates); return(Expression.Lambda(parser.Parse(resultType), parameters)); }
public Expression Parse(Type resultType, string expression, params object[] values) { var parser = new ExtenedExpressionParser(null, expression, values, _methodProviders, _surrogates); return(parser.Parse(resultType)); }