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

InternalImplementAttribute Class

ReferentialConstraint that, when applied on an interface, prevents it to be implemented in a different assembly. This constraint should be used when the author of an interface does not expect users to implement the interface and wants to reserve the possibility to add new methods to the interface.

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

Constructors

Name Description
InternalImplementAttribute()

Initializes a new InternalImplementAttribute.

Properties

Name Description
Severity

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

Methods

Name Description
ValidateCode(Object, Assembly)

Validates the constraint.