Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Eligibility / IEligible<T>

Interface IEligible<T>

An interface that allows aspect to specify to which declarations they are allowed to be applied.

Namespace: Metalama.Framework.Eligibility
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IEligible<in T>
    where T : class, IDeclaration
Type Parameters
Name Description
T

Methods

Name Description
BuildEligibility(IEligibilityBuilder<T>)

Configures the eligibility of the aspect or attribute. Implementations are not allowed to reference non-static members. Implementations must call the implementation of the base class if it exists.

See Also