mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 13:45:05 +00:00
Refactor: Rename SequenceEqual parameter
This commit is contained in:
@@ -234,10 +234,10 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <param name="extends"></param>
|
/// <param name="extends"></param>
|
||||||
/// <param name="other"></param>
|
/// <param name="other"></param>
|
||||||
/// <param name="comparer"></param>
|
/// <param name="predicate"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static bool SequenceEqual<T>([NotNull] this IEnumerable<T> extends, [NotNull] IEnumerable<T> other,
|
public static bool SequenceEqual<T>([NotNull] this IEnumerable<T> extends, [NotNull] IEnumerable<T> other,
|
||||||
[NotNull] Func<T, T, bool> comparer)
|
[NotNull] Func<T, T, bool> predicate)
|
||||||
{
|
{
|
||||||
if (extends == null)
|
if (extends == null)
|
||||||
throw new ArgumentNullException("extends");
|
throw new ArgumentNullException("extends");
|
||||||
@@ -245,8 +245,8 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
if (other == null)
|
if (other == null)
|
||||||
throw new ArgumentNullException("other");
|
throw new ArgumentNullException("other");
|
||||||
|
|
||||||
if (comparer == null)
|
if (predicate == null)
|
||||||
throw new ArgumentNullException("comparer");
|
throw new ArgumentNullException("predicate");
|
||||||
|
|
||||||
// Simple count check
|
// Simple count check
|
||||||
ICollection<T> a = extends as ICollection<T>;
|
ICollection<T> a = extends as ICollection<T>;
|
||||||
@@ -263,7 +263,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
|
|
||||||
while (hasFirst && hasSecond)
|
while (hasFirst && hasSecond)
|
||||||
{
|
{
|
||||||
if (!comparer(firstPos.Current, secondPos.Current))
|
if (!predicate(firstPos.Current, secondPos.Current))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
hasFirst = firstPos.MoveNext();
|
hasFirst = firstPos.MoveNext();
|
||||||
|
|||||||
Reference in New Issue
Block a user