public static Expression Replace (IDictionary<Expression, Expression> expressionMapping, Expression sourceTree)
    {
      ArgumentUtility.CheckNotNull ("expressionMapping", expressionMapping);
      ArgumentUtility.CheckNotNull ("sourceTree", sourceTree);

      var visitor = new MultiReplacingExpressionTreeVisitor (expressionMapping);
      return visitor.VisitExpression (sourceTree);
    }
        public static Expression Replace(IDictionary <Expression, Expression> expressionMapping, Expression sourceTree)
        {
            ArgumentUtility.CheckNotNull("expressionMapping", expressionMapping);
            ArgumentUtility.CheckNotNull("sourceTree", sourceTree);

            var visitor = new MultiReplacingExpressionTreeVisitor(expressionMapping);

            return(visitor.VisitExpression(sourceTree));
        }
Exemplo n.º 3
0
        public static Expression Replace(IDictionary <Expression, Expression> expressionMapping, Expression sourceTree)
        {
            var visitor = new MultiReplacingExpressionTreeVisitor(expressionMapping);

            return(visitor.VisitExpression(sourceTree));
        }