Open sandboxFocus

Delegate ChildVisitor

Encapsulates a method that is invoked by the VisitChildren(ChildVisitor, ChildVisitorOptions, object) method.

Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public delegate bool ChildVisitor(object child, ChildInfo childInfo, object state)
Parameters
Type Name Description
object child

The object being visited.

ChildInfo childInfo

Describes the field or other location to which the child is assigned.

object state

An opaque state object that was requested to be passed to this delegate.

Returns
Type Description
bool

true to instruct the VisitChildren(ChildVisitor, ChildVisitorOptions, object) implementation to continue enumerating other children, false to instruct the VisitChildren(ChildVisitor, ChildVisitorOptions, object) implementation to immediately return the false value without enumerating other children.

Constructors

Name Description
ChildVisitor(object, nint)

Methods

Name Description
BeginInvoke(object, ChildInfo, object, AsyncCallback, object)
EndInvoke(IAsyncResult)
Invoke(object, ChildInfo, object)