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 = ChildVisitorOptions.None, 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
bool