PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ContractsNegative­Attribute
Open sandboxFocus

NegativeAttribute Class

Custom attribute that, when added to a field, property or parameter, throws an System.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.