From 9d3f2b263fe67bff0a8c3f770b314f5302c8e778 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 6 Apr 2021 11:06:43 +0100 Subject: [PATCH] (#15) Rewrite summary for IComparable.Between --- X10D/src/ComparableExtensions/ComparableExtensions.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/X10D/src/ComparableExtensions/ComparableExtensions.cs b/X10D/src/ComparableExtensions/ComparableExtensions.cs index d314c13..994544b 100644 --- a/X10D/src/ComparableExtensions/ComparableExtensions.cs +++ b/X10D/src/ComparableExtensions/ComparableExtensions.cs @@ -8,16 +8,16 @@ namespace X10D.ComparableExtensions public static class ComparableExtensions { /// - /// Determines if is between and . + /// Determines if a specified value falls exclusively between a specified lower bound and upper bound. /// /// An type. /// The first comparison operand type. /// The second comparison operand type. - /// The value to compare. + /// The value to compare. /// The exclusive lower bound. /// The exclusive upper bound. /// - /// if is between the and + /// if is between the and /// /// -or- /// otherwise. @@ -43,10 +43,10 @@ namespace X10D.ComparableExtensions /// // True /// /// - public static bool Between(this T1 actual, T2 lower, T3 upper) + public static bool Between(this T1 value, T2 lower, T3 upper) where T1 : IComparable, IComparable { - return actual.CompareTo(lower) > 0 && actual.CompareTo(upper) < 0; + return value.CompareTo(lower) > 0 && value.CompareTo(upper) < 0; } ///