Export (0) Print
Expand All
Expand Minimize

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.

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

protected internal virtual Expression VisitChildren(
	ExpressionVisitor visitor
)

Parameters

visitor
Type: System.Linq.Expressions.ExpressionVisitor

An instance of Func<T, TResult>.

Return Value

Type: System.Linq.Expressions.Expression
The expression being visited, or an expression which should replace it in the tree.

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft