Open sandboxFocus

Method IsEligibleChild

IsEligibleChild(object, ChildInfo)

Determines whether an object is eligible to be a child of the target instance of the current aspect.

Declaration
protected abstract bool IsEligibleChild(object child, ChildInfo childInfo)
Parameters
Type Name Description
object child

The object to test.

ChildInfo childInfo

The ChildInfo that describes the location of the child.

Returns
Type Description
bool

true if child is eligible to be a child without injecting any advice, otherwise false. When this method returns false, the aspect will invoke the Advise(object) method.