PostSharp//API Reference/Post­Sharp.​Patterns.​Contracts/Less­Than­Attribute/Less­Than­Attribute
Open sandboxFocus

Constructor LessThanAttribute

LessThanAttribute(Int64)

Initializes a new LessThanAttribute with a given integer bound.

Declaration
public LessThanAttribute(long max)
Parameters
Type Name Description
Int64 max

The upper bound.

LessThanAttribute(UInt64)

Initializes a new LessThanAttribute with a given UInt64 bound.

Declaration
public LessThanAttribute(ulong max)
Parameters
Type Name Description
UInt64 max

The upper bound.

LessThanAttribute(Double)

Initializes a new LessThanAttribute with a given floating-point bound.

Declaration
public LessThanAttribute(double max)
Parameters
Type Name Description
Double max

The upper bound.