.NET Framework Class Library
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.
Assembly: System.Core (in System.Core.dll)
Syntax
Visual Basic
Protected Friend Overridable Function VisitChildren ( _ visitor As ExpressionVisitor _ ) As Expression
C#
protected internal virtual Expression VisitChildren( ExpressionVisitor visitor )
Visual C++
protected public: virtual Expression^ VisitChildren( ExpressionVisitor^ visitor )
F#
abstract VisitChildren : visitor:ExpressionVisitor -> Expression override VisitChildren : visitor:ExpressionVisitor -> Expression
Parameters
- visitor
- Type: System.Linq.Expressions.ExpressionVisitor
An instance of Func<T, TResult>.
Return Value
Type: System.Linq.Expressions.ExpressionThe 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
.NET Framework
Supported in: 4.NET Framework Client Profile
Supported in: 4Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also