Open sandboxFocus

Method InternalsCanOnlyBeUsedFrom

InternalsCanOnlyBeUsedFrom(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 than the one allowed, except if this concept has access to the type using inheritance rules.

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