Open sandboxFocus

Method CannotBeUsedFrom

CannotBeUsedFrom(IVerifier<IDeclaration>, Func<ReferencePredicateBuilder, ReferencePredicate>, string?, ReferenceKinds)

Reports a warning when any type in the current scope is used from the context matching the specified predicate.

Declaration
public static void CannotBeUsedFrom(this IVerifier<IDeclaration> verifier, Func<ReferencePredicateBuilder, ReferencePredicate> scope, string? description = null, ReferenceKinds referenceKinds = (ReferenceKinds)-1)
Parameters
Type Name Description
IVerifier<IDeclaration> verifier
Func<ReferencePredicateBuilder, ReferencePredicate> scope
string description
ReferenceKinds referenceKinds