Open sandboxFocus

Method InternalsCannotBeUsedFrom

InternalsCannotBeUsedFrom(ITypeSetVerifier<IDeclaration>, Func<ReferencePredicateBuilder, ReferencePredicate>, string?, ReferenceKinds)

Reports a warning when any of the internal APIs of the current scope in used from a different context different than the one allowed, except if this concept has access to the type using inheritance rules.

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