From 5acfed40ba372066f97ebba8c9e7c5981f8790a9 Mon Sep 17 00:00:00 2001 From: Austin Noska Date: Tue, 5 Jan 2021 16:09:58 -0500 Subject: [PATCH] Refactor: Rename SequenceEqual parameter --- ICD.Common.Utils/Extensions/EnumerableExtensions.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ICD.Common.Utils/Extensions/EnumerableExtensions.cs b/ICD.Common.Utils/Extensions/EnumerableExtensions.cs index 8bdfd6c..92ccbd6 100644 --- a/ICD.Common.Utils/Extensions/EnumerableExtensions.cs +++ b/ICD.Common.Utils/Extensions/EnumerableExtensions.cs @@ -234,10 +234,10 @@ namespace ICD.Common.Utils.Extensions /// /// /// - /// + /// /// public static bool SequenceEqual([NotNull] this IEnumerable extends, [NotNull] IEnumerable other, - [NotNull] Func comparer) + [NotNull] Func predicate) { if (extends == null) throw new ArgumentNullException("extends"); @@ -245,8 +245,8 @@ namespace ICD.Common.Utils.Extensions if (other == null) throw new ArgumentNullException("other"); - if (comparer == null) - throw new ArgumentNullException("comparer"); + if (predicate == null) + throw new ArgumentNullException("predicate"); // Simple count check ICollection a = extends as ICollection; @@ -263,7 +263,7 @@ namespace ICD.Common.Utils.Extensions while (hasFirst && hasSecond) { - if (!comparer(firstPos.Current, secondPos.Current)) + if (!predicate(firstPos.Current, secondPos.Current)) return false; hasFirst = firstPos.MoveNext();