PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­ExtensionsVisit­Self­And­Descendants
Open sandboxFocus

AggregatableExtensions.VisitSelfAndDescendants Method

VisitSelfAndDescendants(IAggregatable, DescendantVisitor, ChildVisitorOptions, Object)

Executes a ChildVisitor for the a specified parent object and all its descendants.

Declaration
public static bool VisitSelfAndDescendants(this IAggregatable parent, DescendantVisitor visitor, ChildVisitorOptions options, object state = null)
Parameters
Type Name Description
IAggregatable parent

The parent object.

DescendantVisitor visitor

The action to execute.

ChildVisitorOptions options

Options.

Object state
Returns
Type Description
Boolean