Skip to content

Commit 3b6bc11

Browse files
author
Edward Meng
committed
revert 'CollectionEqualityExtensions' implementation
1 parent e1c1212 commit 3b6bc11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Exceptionless/Extensions/CollectionEqualityExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static bool CollectionEquals<T>(this IEnumerable<T> source, IEnumerable<T
1414
return false;
1515
}
1616

17-
if (!Equals(sourceEnumerator.Current, otherEnumerator.Current)) {
17+
if (sourceEnumerator.Current.Equals(otherEnumerator.Current)) {
1818
// values aren't equal
1919
return false;
2020
}
@@ -27,7 +27,7 @@ public static bool CollectionEquals<T>(this IEnumerable<T> source, IEnumerable<T
2727
return true;
2828
}
2929

30-
public static bool CollectionEquals<TKey,TValue>(this IDictionary<TKey, TValue> source, IDictionary<TKey, TValue> other) {
30+
public static bool CollectionEquals<TValue>(this IDictionary<string, TValue> source, IDictionary<string, TValue> other) {
3131
if (source.Count != other.Count) {
3232
return false;
3333
}
@@ -40,7 +40,7 @@ public static bool CollectionEquals<TKey,TValue>(this IDictionary<TKey, TValue>
4040
return false;
4141
}
4242

43-
if (!Equals(sourceValue, otherValue)) {
43+
if (sourceValue.Equals(otherValue)) {
4444
return false;
4545
}
4646
}

0 commit comments

Comments
 (0)