PostSharp.ILAPI ReferencePost­Sharp.​ConstraintsInternal­Attribute
Open sandboxFocus

InternalAttribute Class

ReferentialConstraint, when applied to a declaration, prevents it to be used from a different assembly. This constraint can be used when a declaration must be made public for technical reasons, but its author does not want it to be used in external code.

Namespace: PostSharp.Constraints
Assembly: PostSharp.dll
Syntax
[MulticastAttributeUsage]
public sealed class InternalAttribute : ReferentialConstraint, IReferentialConstraint, IConstraint

Constructors

Name Description
InternalAttribute()

Initializes a new InternalAttribute.

Properties

Name Description
Severity

Gets or sets the severity of messages emitted by this constraint.

Methods

Name Description
ValidateCode(Object, Assembly)

Validates the constraint.

ValidateConstraint(Object)

Validates the fact that the constraint has been applied on a valid element of code. When this method returns false, the constraint is silently ignored.