ComparableExtensions.IsBetweenExclusive<T>

Extension Method in ComparableExtensions

Declaration

public static bool IsBetweenExclusive<T>(this T value, T min, T max)
    where T : IComparable<T>

Description

Checks if the value is in the range (min..max).

Type Parameters

TThe type of value to check.

Parameters

valueThe value to check.
minThe minimum value.
maxThe maximum value.

Returns

boolTrue if the value is in the range (min..max).