MetalamaAPI documentationAspect APIMetalama.​Framework.​EligibilityEligibility­ExtensionsExcept­For­Inheritance
Open sandboxFocus

EligibilityExtensions.ExceptForInheritance Method

ExceptForInheritance<T>(IEligibilityBuilder<T>)

Gets an IEligibilityBuilder for the same declaration as the given IEligibilityBuilder but that is not applicable when the aspect is inheritable and is applied to a declaration that can be inherited or overridden.

Declaration
public static IEligibilityBuilder<T> ExceptForInheritance<T>(this IEligibilityBuilder<T> eligibilityBuilder)
where T : class
Parameters
Type Name Description
IEligibilityBuilder<T> eligibilityBuilder
Returns
Type Description
IEligibilityBuilder<T>
Type Parameters
Name Description
T