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
Copy file name to clipboardExpand all lines: OnixLabs.Core/Collections/Generic/Extensions.IEqualityComparer.cs
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,23 @@
18
18
namespaceOnixLabs.Core.Collections.Generic;
19
19
20
20
/// <summary>
21
-
/// Provides LINQ-like extension methods for <see cref="IEqualityComparer{T}"/>.
21
+
/// Provides extension methods for <see cref="IEqualityComparer{T}"/> instances.
22
22
/// </summary>
23
23
// ReSharper disable InconsistentNaming
24
24
[EditorBrowsable(EditorBrowsableState.Never)]
25
25
publicstaticclassIEqualityComparerExtensions
26
26
{
27
27
/// <summary>
28
-
/// Gets the current <see cref="IEqualityComparer{T}"/>, or the default comparer if the current comparer is <see langword="null"/>.
28
+
/// Provides extension methods for <see cref="IEqualityComparer{T}"/> instances.
29
29
/// </summary>
30
-
/// <param name="comparer">The current <see cref="IEqualityComparer{T}"/>.</param>
31
-
/// <typeparam name="T">The underlying type of the current <see cref="IEqualityComparer{T}"/>.</typeparam>
32
-
/// <returns>Returns the current <see cref="IEqualityComparer{T}"/>, or the default comparer if the current comparer is <see langword="null"/>.</returns>
/// <param name="receiver">The current <see cref="IEqualityComparer{T}"/> instance.</param>
31
+
/// <typeparam name="T">The underlying type of the current <see cref="IEqualityComparer{T}"/> instance.</typeparam>
32
+
extension<T>(IEqualityComparer<T>? receiver)
33
+
{
34
+
/// <summary>
35
+
/// Gets the current <see cref="IEqualityComparer{T}"/>, or the default comparer if the current comparer is <see langword="null"/>.
36
+
/// </summary>
37
+
/// <returns>Returns the current <see cref="IEqualityComparer{T}"/>, or the default comparer if the current comparer is <see langword="null"/>.</returns>
/// Negates the current <see cref="Expression{TDelegate}"/> instance using the logical NOT operator.
80
-
/// </summary>
81
-
/// <param name="expression">The expression to negate.</param>
82
-
/// <typeparam name="T">The underlying type of the expression.</typeparam>
83
-
/// <returns>
84
-
/// Returns a new <see cref="Expression{TDelegate}"/> that negates the current <see cref="Expression{TDelegate}"/> instance using the logical NOT operator.
85
-
/// </returns>
86
-
/// <remarks>
87
-
/// Calling this method introduces a new expression parameter (named <c>$param</c>) to ensure a uniform parameter expression.
88
-
/// Internal or nested lambda parameters that do not match the replaced parameter remain untouched.
/// Negates the current <see cref="Expression{TDelegate}"/> instance using the logical NOT operator.
83
+
/// </summary>
84
+
/// <returns>
85
+
/// Returns a new <see cref="Expression{TDelegate}"/> that negates the current <see cref="Expression{TDelegate}"/> instance using the logical NOT operator.
86
+
/// </returns>
87
+
/// <remarks>
88
+
/// Calling this method introduces a new expression parameter (named <c>$param</c>) to ensure a uniform parameter expression.
89
+
/// Internal or nested lambda parameters that do not match the replaced parameter remain untouched.
0 commit comments