1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 04:55:42 +00:00
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> /// <summary>
/// Indicates that the comparison will be exclusive. /// Indicates that the comparison will be exclusive.
/// </summary> /// </summary>
Exclusive = 0, None = 0,
/// <summary> /// <summary>
/// Indicates that the comparison will treat the upper bound as exclusive. /// Indicates that the comparison will treat the upper bound as exclusive.

View File

@ -44,7 +44,7 @@ public static class ComparableExtensions
/// // True /// // True
/// </code> /// </code>
/// </example> /// </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 T1 : IComparable<T2>, IComparable<T3>
where T2 : IComparable<T3> where T2 : IComparable<T3>
where T3 : IComparable<T2> where T3 : IComparable<T2>