Open sandboxFocus

Method IsInheritable

IsInheritable(IDeclaration, IAspectInstance)

Determines whether this aspect instance should be inherited by derived declarations.

Declaration
bool IsInheritable(IDeclaration targetDeclaration, IAspectInstance aspectInstance)
Parameters
Type Name Description
IDeclaration targetDeclaration

The declaration to which the aspect is applied.

IAspectInstance aspectInstance

The aspect instance being evaluated.

Returns
Type Description
bool

true if the aspect should be inherited by derived declarations; otherwise, false.