Condividi tramite


Expression.VisitChildren Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Protected Friend Overridable Function VisitChildren ( _
    visitor As ExpressionVisitor _
) As Expression
protected internal virtual Expression VisitChildren(
    ExpressionVisitor visitor
)

Parameters

Return Value

Type: System.Linq.Expressions.Expression
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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.