Share via


ExistsExpression.VisitChildren(ExpressionVisitor) Method

Definition

Reduces the node and then calls the Visit(Expression) method passing the reduced expression. Throws an exception if the node isn't reducible.

protected override System.Linq.Expressions.Expression VisitChildren (System.Linq.Expressions.ExpressionVisitor visitor);
override this.VisitChildren : System.Linq.Expressions.ExpressionVisitor -> System.Linq.Expressions.Expression
Protected Overrides Function VisitChildren (visitor As ExpressionVisitor) As Expression

Parameters

visitor
ExpressionVisitor

An instance of ExpressionVisitor.

Returns

The expression being visited, or an expression which should replace it in the tree.

Remarks

Override this method to provide logic to walk the node's children. A typical implementation will call visitor.Visit on each of its children, and if any of them change, should return a new copy of itself with the modified children.

Applies to