DescendantVisitor Delegate |
Encapsulates a method that is invoked by the VisitSelfAndDescendants(IAggregatable, DescendantVisitor, ChildVisitorOptions, Object) method.
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public delegate DescendantVisitorStatus DescendantVisitor( Object descendant, ChildInfo childInfo, Object state )
Parameters
- descendant
- Type: System.Object
The object being visited. - childInfo
- Type: PostSharp.Patterns.Model.ChildInfo
Describes the field or other location to which the child is assigned. - state
- Type: System.Object
An opaque state object that was requested to be passed to this delegate.
Return Value
Type: DescendantVisitorStatusA value that determines how the visitor should continue enumerating other objects.