Open sandboxFocus

Method MustHaveAspectOfType

MustHaveAspectOfType(IEligibilityBuilder<IDeclaration>, Type)

Requires the target declaration to have an aspect of a given type.

Declaration
public static void MustHaveAspectOfType(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.