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

Method BuildEligibility

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.

Declaration
virtual void BuildEligibility(IEligibilityBuilder<T> builder)
Parameters
Type Name Description
IEligibilityBuilder<T> builder

An object that allows the aspect to configure characteristics like description, dependencies, or layers.

Remarks

Do not reference instance class members in your implementation of BuildEligibility(IEligibilityBuilder<T>). Indeed, this method is called on an instance obtained using GetUninitializedObject(Type), that is, without invoking the class constructor.

See Also