Breyta

Deila með


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>)

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

Visit(Expression)

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

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

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

Visit(ReadOnlyCollection<Expression>)

Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs

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.

Applies to

Visit(Expression)

Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs

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);
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

The expression to visit.

Returns

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

Applies to

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

Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs

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

nodes
ReadOnlyCollection<T>

The nodes to visit.

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