コード例 #1
0
        public static Expression ReplaceConstantsWithArrayIndexes(
            Expression node, ConstantExpression[] constantExpressions, ParameterExpression constantsParameter)
        {
            var visitor = new ConstantArrayIndexizerVisitor(constantExpressions, constantsParameter);

            return(visitor.Visit(node));
        }
コード例 #2
0
        public static Expression ReplaceConstantsWithArrayIndexes(Expression node,
            ConstantExpression[] constantExpressions, ParameterExpression constantsParameter)
        {
            var visitor = new ConstantArrayIndexizerVisitor(constantExpressions, constantsParameter);

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