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);
    }
Exemple #2
0
        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));
        }