MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​AspectsInternals­Can­Only­Be­Used­From­Attribute
Open sandboxFocus

InternalsCanOnlyBeUsedFromAttribute Class

Aspect that, when applied to a public type, reports a warning whenever any member of the target type is used from from a different type than the ones specified by the Types, Namespaces, NamespaceOfTypes or CurrentNamespace properties.

Inheritance
System.Object
InternalsCanOnlyBeUsedFromAttribute
Namespace: Metalama.Extensions.Architecture.Aspects
Assembly: Metalama.Extensions.Architecture.dll
Syntax
[RunTimeOrCompileTime]
public class InternalsCanOnlyBeUsedFromAttribute : InternalsUsageValidationAttribute, IConditionallyInheritableAspect, IAspect<INamedType>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<INamedType>

Constructors

Name Description
InternalsCanOnlyBeUsedFromAttribute()

Methods

Name Description
CreateValidator(ReferencePredicate, ReferencePredicate)