AggregatableExtensions.VisitSelfAndDescendants Method |
Executes a ChildVisitor for the a specified parent object and all its descendants.
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.6.14.0 (6.6.14.0)

C#
public static bool VisitSelfAndDescendants( this IAggregatable parent, DescendantVisitor visitor, ChildVisitorOptions options = ChildVisitorOptions.None, Object state = null )
Parameters
- parent
- Type: PostSharp.Patterns.Model.IAggregatable
The parent object. - visitor
- Type: PostSharp.Patterns.Model.DescendantVisitor
The action to execute. - options (Optional)
- Type: PostSharp.Patterns.Model.ChildVisitorOptions
Options. - state (Optional)
- Type: System.Object
Return Value
Type: BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAggregatable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).