You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added EnumerableComparer overloads that avoid boxing for ImmutableAray. (ArraySegment, the other common collection struct, has implicit conversions from arrays, which mess with nullability constraints.)
/// Compares the given <see cref="IEnumerable"/> objects for equality by comparing their elements.
88
+
/// </para>
89
+
/// <para>
90
+
/// This method performs equality checks on the <see cref="IEnumerable"/>'s elements.
91
+
/// It is not recursive. To support nested collections, use custom collections that override their equality checks accordingly.
92
+
/// </para>
93
+
/// <para>
94
+
/// <strong>This non-generic overload should be avoided if possible.</strong>
95
+
/// It lacks the ability to special-case generic types, which may lead to unexpected results.
96
+
/// For example, two <see cref="HashSet{T}"/> instances with an ignore-case comparer may consider each other equal despite having different-cased contents.
97
+
/// However, the current method has no knowledge of their comparers or their order-agnosticism, and may return a different result.
98
+
/// </para>
99
+
/// <para>
100
+
/// Unlike <see cref="EnumerableEquals{TElement}(IEnumerable{TElement}, IEnumerable{TElement})"/>, this method may cause boxing of elements that are of a value type.
/// Compares the given <see cref="IEnumerable"/> objects for equality by comparing their elements.
155
-
/// </para>
156
-
/// <para>
157
-
/// This method performs equality checks on the <see cref="IEnumerable{T}"/>'s elements.
158
-
/// It is not recursive. To support nested collections, use custom collections that override their equality checks accordingly.
159
-
/// </para>
160
-
/// <para>
161
-
/// <strong>This non-generic overload should be avoided if possible.</strong>
162
-
/// It lacks the ability to special-case generic types, which may lead to unexpected results.
163
-
/// For example, two <see cref="HashSet{T}"/> instances with an ignore-case comparer may consider each other equal despite having different-cased contents.
164
-
/// However, the current method has no knowledge of their comparers or their order-agnosticism, and may return a different result.
165
-
/// </para>
166
-
/// <para>
167
-
/// Unlike <see cref="EnumerableEquals{TElement}"/>, this method may cause boxing of elements that are of a value type.
0 commit comments