MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​FabricsVerifier­ExtensionsInternals­Can­Only­Be­Used­From
Open sandboxFocus

VerifierExtensions.InternalsCanOnlyBeUsedFrom Method

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)
Parameters
Type Name Description
ITypeSetVerifier<IDeclaration> setVerifier
System.Func<ReferencePredicateBuilder, ReferencePredicate> scope
System.String description
ReferenceKinds referenceKinds