PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsNegative­Attribute
Open sandboxFocus

Class NegativeAttribute

Custom attribute that, when added to a field, property or parameter, throws an ArgumentOutOfRangeException if the target is assigned a value greater than zero.

Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common.dll
Syntax
public class NegativeAttribute : LessThanAttribute, ILocationLevelAspect, IValidableAnnotation, IAspect

Constructors

Name Description
NegativeAttribute()

Initializes a new NegativeAttribute.