Encapsulates a predicate determining the eligibility of an object (typically a declaration or a type).
Namespace: Metalama.Framework.Eligibility
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IEligibilityRule<in T> where T : class
Type Parameters
Name | Description |
---|---|
T | The type of object that the extension can be applied to. |
Methods
Name | Description |
---|---|
GetEligibility(T) | Determines the eligibility of a given object for the current object extension. |
GetIneligibilityJustification(EligibleScenarios, IDescribedObject<T>) | Gets the justification for which the GetEligibility(T) method returned anything else than All. |