System.Linq.Expressions.DynamicExpression.Rewrite C# (CSharp) Method

Rewrite() private method

Makes a copy of this node replacing the args with the provided values. The number of the args needs to match the number of the current block. This helper is provided to allow re-writing of nodes to not depend on the specific optimized subclass of DynamicExpression which is being used.
private Rewrite ( Expression args ) : DynamicExpression
args Expression
return DynamicExpression
        internal virtual DynamicExpression Rewrite(Expression[] args)
        {
            throw ContractUtils.Unreachable;
        }

Usage Example

 protected internal virtual Expression VisitDynamic(DynamicExpression node)
 {
     Expression[] args = this.VisitArguments(node);
     if (args == null)
     {
         return(node);
     }
     return(node.Rewrite(args));
 }
All Usage Examples Of System.Linq.Expressions.DynamicExpression::Rewrite