ExpressionVisitor.VisitExtension(Expression) Method

Definition

Visits the children of the extension expression.

protected public:
 virtual System::Linq::Expressions::Expression ^ VisitExtension(System::Linq::Expressions::Expression ^ node);
protected internal virtual System.Linq.Expressions.Expression VisitExtension (System.Linq.Expressions.Expression node);
abstract member VisitExtension : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
override this.VisitExtension : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Protected Friend Overridable Function VisitExtension (node As Expression) As Expression

Parameters

node
Expression

The expression to visit.

Returns

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

Remarks

This can be overridden to visit or rewrite specific extension nodes.

If it is not overridden, this method will call VisitChildren, which gives the node a chance to walk its children. By default, VisitChildren will try to reduce the node.

Applies to