Expression.VisitChildren(ExpressionVisitor) Méthode
Définition
Réduit le nœud puis appelle le délégué visiteur sur l'expression réduite.Reduces the node and then calls the visitor delegate on the reduced expression. La méthode lève une exception si le nœud n'est pas réductible.The method throws an exception if the node is not reducible.
protected public:
virtual System::Linq::Expressions::Expression ^ VisitChildren(System::Linq::Expressions::ExpressionVisitor ^ visitor);
protected internal virtual System.Linq.Expressions.Expression VisitChildren (System.Linq.Expressions.ExpressionVisitor visitor);
abstract member VisitChildren : System.Linq.Expressions.ExpressionVisitor -> System.Linq.Expressions.Expression
override this.VisitChildren : System.Linq.Expressions.ExpressionVisitor -> System.Linq.Expressions.Expression
Protected Friend Overridable Function VisitChildren (visitor As ExpressionVisitor) As Expression
Paramètres
- visitor
- ExpressionVisitor
Instance de Func<T,TResult>.An instance of Func<T,TResult>.
Retours
Expression qui est visitée ou expression qui doit la remplacer dans l’arborescence.The expression being visited, or an expression which should replace it in the tree.
Remarques
Substituez cette méthode pour fournir une logique permettant de parcourir les enfants du nœud.Override this method to provide logic to walk the node's children. Une implémentation classique appellera le visiteur. Visitez chacun de ses enfants, et si l’un d’eux change, doit retourner une nouvelle copie de lui-même avec les enfants modifiés.A typical implementation will call visitor.Visit on each of its children, and if any of them change, should return a new copy of itself with the modified children.