Open sandboxFocus

Method IsEligibleChild

IsEligibleChild(object, ChildInfo)

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

Declaration
protected override sealed bool IsEligibleChild(object child, ChildInfo childInfo)
Parameters
Type Name Description
object child
ChildInfo childInfo
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 the invoke the Advise(object) method.

Overrides