Open sandboxFocus

Method VisitSelfAndDescendants

VisitSelfAndDescendants(IAggregatable, DescendantVisitor, ChildVisitorOptions, object)

Executes a ChildVisitor for 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

The options.

object state

An opaque state object that is passed to visitor.

Returns
Type Description
bool