Open sandboxFocus

Method MustNotHaveAspectOfType

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

The eligibility builder for a declaration.

Type aspectType

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

Remarks

Use this method to prevent aspect conflicts or ensure mutual exclusivity between aspects.