System.Linq.Expressions.Expression.VisitChildren Method

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

Syntax

protected virtual Expression VisitChildren (ExpressionVisitor visitor)

Parameters

visitor
An instance of Func`2.

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.

Requirements

Namespace: System.Linq.Expressions
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0