System.Linq.Expressions.ExpressionVisitor.VisitExtension Method

Visits the children of the extension expression.

Syntax

protected virtual Expression VisitExtension (Expression node)

Parameters

node
The expression to visit.

Returns

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

Remarks

This can be overridden to visit or rewrite specific extension nodes.

If it is not overridden, this method will call Expression.VisitChildren(ExpressionVisitor), which gives the node a chance to walk its children. By default, Expression.VisitChildren(ExpressionVisitor) will try to reduce the node.

Requirements

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