Root class for all constraints based on MulticastAttribute. A constraint is a piece validation logic executed at build time. Constraints are applied to elements of code ((Assembly, Type, MethodInfo, ConstructorInfo, PropertyInfo, EventInfo, FieldInfo, ParameterInfo) typically using multicast custom attributes, and verified at build time for every assembly using this element of code.
Implements
Namespace: PostSharp.Constraints
Assembly: PostSharp.dll
Syntax
public abstract class Constraint : MulticastAttribute, IConstraint
Constructors
Name | Description |
---|---|
Constraint() |
Methods
Name | Description |
---|---|
ValidateConstraint(object) | Validates the fact that the constraint has been applied on a valid element of code. When this
method returns |