Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Architecture.​Aspects / Internals­Can­Only­Be­Used­From­Attribute

Class InternalsCanOnlyBeUsedFromAttribute

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
InternalsCanOnlyBeUsedFromAttribute
Namespace: Metalama.Extensions.Architecture.Aspects
Assembly: Metalama.Extensions.Architecture.dll
Syntax
public class InternalsCanOnlyBeUsedFromAttribute : BaseUsageValidationAttribute, IConditionallyInheritableAspect, IAspect<INamedType>, IAspect, ICompileTimeSerializable, IEligible<INamedType>

Constructors

Name Description
InternalsCanOnlyBeUsedFromAttribute()

Methods

Name Description
BuildAspect(IAspectBuilder<INamedType>)
BuildEligibility(IEligibilityBuilder<INamedType>)