PostSharp//API Reference/Post­Sharp.​Patterns.​Contracts/Strict­Range­Attribute/Strict­Range­Attribute
Open sandboxFocus

Constructor StrictRangeAttribute

StrictRangeAttribute(Int64, Int64)

Initializes a new StrictRangeAttribute with given integer bounds.

Declaration
public StrictRangeAttribute(long min, long max)
Parameters
Type Name Description
Int64 min

The lower bound.

Int64 max

The lower bound.

StrictRangeAttribute(UInt64, UInt64)

Initializes a new StrictRangeAttribute with given UInt64 bounds.

Declaration
public StrictRangeAttribute(ulong min, ulong max)
Parameters
Type Name Description
UInt64 min

The lower bound.

UInt64 max

The upper bound.

StrictRangeAttribute(Double, Double)

Initializes a new StrictRangeAttribute with given floating-point bounds.

Declaration
public StrictRangeAttribute(double min, double max)
Parameters
Type Name Description
Double min

The lower bound.

Double max

The upper bound.