IntRange.Includes

Method in IntRange

Declaration

public bool Includes(int value)

Description

Checks if a value is in the range.

Parameters

valueThe value to check.

Returns

boolTrue if the value is in the range, false otherwise.

Overload

Declaration

public bool Includes(int value, bool includeMin, bool includeMax)

Description

Checks if a value is in the range.

Parameters

valueThe value to check.
includeMinThe minimum value is inclusive if true, exclusive if false.
includeMaxThe maximum value is inclusive if true, exclusive if false.

Returns

boolTrue if the value is in the range, false otherwise.