ExpressionVisitor.Visit ExpressionVisitor.Visit ExpressionVisitor.Visit ExpressionVisitor.Visit Method

Definition

Dispatches the expression or the list of expressions to one of the more specialized visit methods in this class.

Overloads

Visit(ReadOnlyCollection<Expression>) Visit(ReadOnlyCollection<Expression>) Visit(ReadOnlyCollection<Expression>) Visit(ReadOnlyCollection<Expression>)

Dispatches the list of expressions to one of the more specialized visit methods in this class.

Visit(Expression) Visit(Expression) Visit(Expression) Visit(Expression)

Dispatches the expression to one of the more specialized visit methods in this class.

Visit<T>(ReadOnlyCollection<T>, Func<T,T>) Visit<T>(ReadOnlyCollection<T>, Func<T,T>) Visit<T>(ReadOnlyCollection<T>, Func<T,T>) Visit<T>(ReadOnlyCollection<T>, Func<T,T>)

Visits all nodes in the collection using a specified element visitor.

Visit(ReadOnlyCollection<Expression>) Visit(ReadOnlyCollection<Expression>) Visit(ReadOnlyCollection<Expression>) Visit(ReadOnlyCollection<Expression>)

Dispatches the list of expressions to one of the more specialized visit methods in this class.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Linq::Expressions::Expression ^> ^ Visit(System::Collections::ObjectModel::ReadOnlyCollection<System::Linq::Expressions::Expression ^> ^ nodes);
public System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression> Visit (System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression> nodes);
member this.Visit : System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression> -> System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression>
Public Function Visit (nodes As ReadOnlyCollection(Of Expression)) As ReadOnlyCollection(Of Expression)

Parameters

nodes
ReadOnlyCollection<Expression>

The expressions to visit.

Returns

The modified expression list, if any one of the elements were modified; otherwise, returns the original expression list.

Visit(Expression) Visit(Expression) Visit(Expression) Visit(Expression)

Dispatches the expression to one of the more specialized visit methods in this class.

public:
 virtual System::Linq::Expressions::Expression ^ Visit(System::Linq::Expressions::Expression ^ node);
public virtual System.Linq.Expressions.Expression Visit (System.Linq.Expressions.Expression node);
abstract member Visit : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
override this.Visit : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Public Overridable Function Visit (node As Expression) As Expression

Parameters

node
Expression Expression Expression Expression

The expression to visit.

Returns

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

Visit<T>(ReadOnlyCollection<T>, Func<T,T>) Visit<T>(ReadOnlyCollection<T>, Func<T,T>) Visit<T>(ReadOnlyCollection<T>, Func<T,T>) Visit<T>(ReadOnlyCollection<T>, Func<T,T>)

Visits all nodes in the collection using a specified element visitor.

public:
generic <typename T>
 static System::Collections::ObjectModel::ReadOnlyCollection<T> ^ Visit(System::Collections::ObjectModel::ReadOnlyCollection<T> ^ nodes, Func<T, T> ^ elementVisitor);
public static System.Collections.ObjectModel.ReadOnlyCollection<T> Visit<T> (System.Collections.ObjectModel.ReadOnlyCollection<T> nodes, Func<T,T> elementVisitor);
static member Visit : System.Collections.ObjectModel.ReadOnlyCollection<'T> * Func<'T, 'T> -> System.Collections.ObjectModel.ReadOnlyCollection<'T>
Public Shared Function Visit(Of T) (nodes As ReadOnlyCollection(Of T), elementVisitor As Func(Of T, T)) As ReadOnlyCollection(Of T)

Type Parameters

T

The type of the nodes.

Parameters

elementVisitor
Func<T,T>

A delegate that visits a single element, optionally replacing it with a new element.

Returns

The modified node list, if any of the elements were modified; otherwise, returns the original node list.

Applies to