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
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate, AllowMultiple = true)]
[MulticastAttributeUsage(MulticastTargets.Interface, TargetTypeAttributes = MulticastAttributes.Public)]
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. |