public static Expression ReplaceConstantsWithArrayIndexes(
            Expression node, ConstantExpression[] constantExpressions, ParameterExpression constantsParameter)
        {
            var visitor = new ConstantArrayIndexizerVisitor(constantExpressions, constantsParameter);

            return(visitor.Visit(node));
        }
        public static Expression ReplaceConstantsWithArrayIndexes(Expression node,
            ConstantExpression[] constantExpressions, ParameterExpression constantsParameter)
        {
            var visitor = new ConstantArrayIndexizerVisitor(constantExpressions, constantsParameter);

            return visitor.Visit(node);
        }
Beispiel #3
0
 private static Expression ReplaceConstantsWithArrayLookup(Expression expression,
                                                           ConstantExpression[] constants, ParameterExpression constantsParameter)
 {
     return(ConstantArrayIndexizerVisitor.ReplaceConstantsWithArrayIndexes(expression,
                                                                           constants, constantsParameter));
 }