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

      var visitor = new MultiReplacingExpressionVisitor (expressionMapping);
      return visitor.Visit (sourceTree);
    }
Exemplo n.º 2
0
        public static Expression Replace(IDictionary <Expression, Expression> expressionMapping, Expression sourceTree)
        {
            ArgumentUtility.CheckNotNull("expressionMapping", expressionMapping);
            ArgumentUtility.CheckNotNull("sourceTree", sourceTree);

            var visitor = new MultiReplacingExpressionVisitor(expressionMapping);

            return(visitor.Visit(sourceTree));
        }