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

An IEligibilityBuilder<T> for the target declaration.

Type aspectType

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