From 5b5fa42b46c5280cc107fb6b3abe7de55b0017ce Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 20 Apr 2022 16:33:11 +0100 Subject: [PATCH] [ci skip] Rename Clusivity.Exclusive to Clusivity.None https://sonarcloud.io/project/issues?fileUuids=AX9gUgFivY1Q2LeuiUva&pullRequest=43&id=oliverbooth_X10D&open=AX75E353Zn_cGN5aPZcR --- X10D/src/ComparableExtensions/Clusivity.cs | 2 +- X10D/src/ComparableExtensions/ComparableExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/X10D/src/ComparableExtensions/Clusivity.cs b/X10D/src/ComparableExtensions/Clusivity.cs index 08a2ab7..9bac34e 100644 --- a/X10D/src/ComparableExtensions/Clusivity.cs +++ b/X10D/src/ComparableExtensions/Clusivity.cs @@ -9,7 +9,7 @@ public enum Clusivity : byte /// /// Indicates that the comparison will be exclusive. /// - Exclusive = 0, + None = 0, /// /// Indicates that the comparison will treat the upper bound as exclusive. diff --git a/X10D/src/ComparableExtensions/ComparableExtensions.cs b/X10D/src/ComparableExtensions/ComparableExtensions.cs index b191939..b2c9098 100644 --- a/X10D/src/ComparableExtensions/ComparableExtensions.cs +++ b/X10D/src/ComparableExtensions/ComparableExtensions.cs @@ -44,7 +44,7 @@ public static class ComparableExtensions /// // True /// /// - public static bool Between(this T1 value, T2 lower, T3 upper, Clusivity clusivity = Clusivity.Exclusive) + public static bool Between(this T1 value, T2 lower, T3 upper, Clusivity clusivity = Clusivity.None) where T1 : IComparable, IComparable where T2 : IComparable where T3 : IComparable