public static bool IsBetween<T>(this T item, T start, T end) { return Comparer<T>.Default.Compare(item, start) >= 0 && Comparer<T>.Default.Compare(item, end) <= 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)