PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Descendant­Visitor­Status Enumeration

DescendantVisitorStatus Enumeration

Type of the return value of ChildVisitor. Determines how the visitor should continue enumerating other objects.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 2023.0.3.0 (2023.0.3.0)
public enum DescendantVisitorStatus
  Member nameValueDescription
Default0 Equivalent to ContinueWithChildren for VisitSelfAndDescendants(IAggregatable, DescendantVisitor, ChildVisitorOptions, Object) or ContinueWithSiblings for VisitChildren(ChildVisitor, ChildVisitorOptions, Object).
Stop1 Immediately stops enumeration and returns to the caller.
ContinueWithChildren2 Continues enumerating the children of the current node, then the sibling nodes. This value is not supported by the VisitChildren(ChildVisitor, ChildVisitorOptions, Object) method.
ContinueWithSiblings3 Continues enumerating the siblings of the current node, but do not enumerate the children nodes.
See Also