Guard.CheckRangeInclusive Method

Overloads

CheckRangeInclusive(Integer, Integer, Integer)

Checks an argument to ensure it is in the specified range including the bounds.

CheckRangeInclusive(Integer, Integer, Integer)

Checks an argument to ensure it is in the specified range including the bounds.

Delphi
class procedure CheckRangeInclusive(value: Integer; min: Integer; max: Integer)

Parameters

value
Integer

The argument value to check.

min
Integer

The minimum allowed value for the argument.

max
Integer

The maximum allowed value for the argument.

Exceptions

The value is not within the specified range.