PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­Client­AttributeIs­Eligible­Child
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 abstract bool IsEligibleChild(object child, ChildInfo childInfo)
Parameters
Type Name Description
Object child
ChildInfo childInfo
Returns
Type Description
Boolean

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.