Oliver Booth 2022-04-20 16:33:11 +01:00
parent d8877a293e
commit 5b5fa42b46
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ public enum Clusivity : byte
/// <summary>
/// Indicates that the comparison will be exclusive.
/// </summary>
Exclusive = 0,
None = 0,
/// <summary>
/// Indicates that the comparison will treat the upper bound as exclusive.

View File

@ -44,7 +44,7 @@ public static class ComparableExtensions
/// // True
/// </code>
/// </example>
public static bool Between<T1, T2, T3>(this T1 value, T2 lower, T3 upper, Clusivity clusivity = Clusivity.Exclusive)
public static bool Between<T1, T2, T3>(this T1 value, T2 lower, T3 upper, Clusivity clusivity = Clusivity.None)
where T1 : IComparable<T2>, IComparable<T3>
where T2 : IComparable<T3>
where T3 : IComparable<T2>