GetAdviceEligibilityRule(AdviceKind)
Gets the default eligibility rules that apply to a specific advice. The rules returned by this method are those used by classes OverrideMethodAspect, OverrideFieldOrPropertyAspect and so on. If you implement the BuildEligibility(IEligibilityBuilder<T>) method manually, you can use this method to get the base rules, and add only rules that are specific to your aspect.
Declaration
public static IEligibilityRule<IDeclaration> GetAdviceEligibilityRule(AdviceKind adviceKind)
Parameters
Type | Name | Description |
---|---|---|
AdviceKind | adviceKind | The kind of advice. |
Returns
Type | Description |
---|---|
IEligibilityRule<IDeclaration> |