PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Constraints Namespace / Reference­Constraint Class / Reference­Constraint Methods

ReferenceConstraint Methods

The ReferenceConstraint type exposes the following members.

Methods
  NameDescription
Public methodValidateConstraint
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.
(Inherited from Constraint.)
Protected methodValidateReference
Validates a reference to the target declaration of the current constraint.
See Also