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

Rewrite() private method

private Rewrite ( Expression instance, IReadOnlyList args ) : MethodCallExpression
instance Expression
args IReadOnlyList
return MethodCallExpression
        internal virtual MethodCallExpression Rewrite(Expression instance, IReadOnlyList<Expression> args)
        {
            throw ContractUtils.Unreachable;
        }

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Visits the children of the <see cref="MethodCallExpression" />.
        /// </summary>
        /// <param name="node">The expression to visit.</param>
        /// <returns>The modified expression, if it or any subexpression was modified;
        /// otherwise, returns the original expression.</returns>
        protected internal virtual Expression VisitMethodCall(MethodCallExpression node)
        {
            Expression o = Visit(node.Object);
            Expression[] a = VisitArguments(node);
            if (o == node.Object && a == null)
            {
                return node;
            }

            return node.Rewrite(o, a);
        }
All Usage Examples Of System.Linq.Expressions.MethodCallExpression::Rewrite