IScalarConstraint Interface |
A constraint that validates a specific element of code. Use an IReferentialConstraint
to validate relationships between elements of code.
Namespace: PostSharp.Constraints
Assembly: PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)

C#
public interface IScalarConstraint : IConstraint
The IScalarConstraint type exposes the following members.

Name | Description | |
---|---|---|
![]() | ValidateCode |
Validates the element of code to which the constraint is applied.
|
![]() | ValidateConstraint |
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 IConstraint.) |

