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

Rewrite() private method

private Rewrite ( Expression lambda, Expression arguments ) : InvocationExpression
lambda Expression
arguments Expression
return InvocationExpression
        internal override InvocationExpression Rewrite(Expression lambda, Expression[] arguments)
        {
            Debug.Assert(lambda != null);
            Debug.Assert(arguments == null || arguments.Length == 1);

            if (arguments != null)
            {
                return Expression.Invoke(lambda, arguments[0]);
            }
            return Expression.Invoke(lambda, ReturnObject<Expression>(_arg0));
        }
    }