PostSharpAPI ReferencePost­Sharp.​ConstraintsReference­Constraint
Open sandboxFocus

Class ReferenceConstraint

Base class for constraints validating code references.

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

Constructors

Name Description
ReferenceConstraint() PostSharp.Constraints.ReferenceConstraint

Methods

Name Description
ValidateCode(Object, Assembly)
ValidateReference(ICodeReference)

Validates a reference to the target declaration of the current constraint.