ExpressionVisitor.Visit Metod

Definition

Skickar uttrycket eller listan med uttryck till någon av de mer specialiserade besöksmetoderna i den här klassen.

Överlagringar

Name Description
Visit(ReadOnlyCollection<Expression>)

Skickar listan med uttryck till en av de mer specialiserade besöksmetoderna i den här klassen.

Visit(Expression)

Skickar uttrycket till en av de mer specialiserade besöksmetoderna i den här klassen.

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

Besöker alla noder i samlingen med hjälp av en angiven elementbesökare.

Visit(ReadOnlyCollection<Expression>)

Skickar listan med uttryck till en av de mer specialiserade besöksmetoderna i den här klassen.

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)

Parametrar

nodes
ReadOnlyCollection<Expression>

De uttryck som ska besökas.

Returer

Listan med ändrade uttryck, om något av elementen har ändrats. annars returnerar den ursprungliga uttryckslistan.

Gäller för

Visit(Expression)

Skickar uttrycket till en av de mer specialiserade besöksmetoderna i den här klassen.

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

Parametrar

node
Expression

Uttrycket som ska besökas.

Returer

Det ändrade uttrycket, om det eller någon underuttryck ändrades; annars returnerar det ursprungliga uttrycket.

Gäller för

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

Besöker alla noder i samlingen med hjälp av en angiven elementbesökare.

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)

Typparametrar

T

Typ av noder.

Parametrar

nodes
ReadOnlyCollection<T>

Noderna som ska besökas.

elementVisitor
Func<T,T>

Ett ombud som besöker ett enda element och som kan ersätta det med ett nytt element.

Returer

Den ändrade nodlistan, om något av elementen ändrades; annars returnerar den ursprungliga nodlistan.

Gäller för