MetalamaAPI documentationAspect APIMetalama.​Framework.​EligibilityEligibility­ExtensionsMust­Not­Have­Aspect­Of­Type
Open sandboxFocus

EligibilityExtensions.MustNotHaveAspectOfType Method

MustNotHaveAspectOfType(IEligibilityBuilder<IDeclaration>, Type)

Forbids the target declaration from having an aspect of a given type.

Declaration
public static void MustNotHaveAspectOfType(this IEligibilityBuilder<IDeclaration> eligibilityBuilder, Type aspectType)
Parameters
Type Name Description
IEligibilityBuilder<IDeclaration> eligibilityBuilder

An IEligibilityBuilder<T> for the target declaration.

System.Type aspectType

The exact aspect type. Derived types are not taken into account.