Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        public Expression Parse(Type resultType, string expression, params object[] values)
        {
            var parser = new ExtenedExpressionParser(null, expression, values, _methodProviders, _surrogates);

            return(parser.Parse(resultType));
        }