PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsLess­Than­AttributeLess­Than­Attribute
Open sandboxFocus

LessThanAttribute Constructor

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.