Пример #1
0
 public static bool Between <T>(this IComparable <T> @this, T value1, T value2)
 => @this.MoreThanOrEqualTo(value1) && @this.LessThanOrEqualTo(value2);
Пример #2
0
 public static bool Between(this IComparable @this, object value1, object value2)
 => @this.MoreThanOrEqualTo(value1) && @this.LessThanOrEqualTo(value2);