Skip to content

M_CodeJam_Expressions_ExpressionExtensions_Visit_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

ExpressionExtensions.Visit Method (Expression, Func(Expression, Boolean))

Visits expression tree.

Namespace: CodeJam.Expressions
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static void Visit(
	this Expression expr,
	Func<Expression, bool> func
)

VB

<ExtensionAttribute>
Public Shared Sub Visit ( 
	expr As Expression,
	func As Func(Of Expression, Boolean)
)

F#

[<ExtensionAttribute>]
static member Visit : 
        expr : Expression * 
        func : Func<Expression, bool> -> unit 

Parameters

 

expr
Type: System.Linq.Expressions.Expression
Expression to visit.
func
Type: System.Func(Expression, Boolean)
Visit function. Return true to stop.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Expression. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

ExpressionExtensions Class
Visit Overload
CodeJam.Expressions Namespace

Clone this wiki locally