MetalamaAPI documentationPatterns APIMetalama.​Patterns.​ContractsLess­Than­AttributeLess­Than­Attribute
Open sandboxFocus

LessThanAttribute Constructor

LessThanAttribute(Int64)

Initializes a new instance of the LessThanAttribute class specifying an integer bound.

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

The upper bound.

LessThanAttribute(UInt64)

Initializes a new instance of the LessThanAttribute class specifying an unsigned integer bound.

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

The upper bound.

LessThanAttribute(Double)

Initializes a new instance of the LessThanAttribute class specifying a floating-point bound.

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

The upper bound.