Class StrictlyNegativeAttribute
Custom attribute that, when added to a field, property or parameter, throws an ArgumentOutOfRangeException if the target is assigned a value greater than or equal to zero.
Inheritance
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common.dll
Syntax
public class StrictlyNegativeAttribute : StrictlyLessThanAttribute, ILocationLevelAspect, IValidableAnnotation, IAspect
Constructors
Name | Description |
---|---|
StrictlyNegativeAttribute() | Initializes a new StrictlyNegativeAttribute. |