38 implementations of IEqualityComparer
dotnet-svcutil-lib (8)
Metrics (1)
Metrics.Legacy (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.UnitTests (1)
PresentationFramework (2)
Roslyn.Diagnostics.Analyzers (1)
System.Collections (1)
System.Collections.Specialized (1)
System.ComponentModel.TypeConverter (1)
System.Private.CoreLib (6)
System.Private.Xml (2)
System.Private.Xml.Linq (1)
System.Resources.Extensions (1)
System.Runtime.Caching (1)
Text.Analyzers (1)
xunit.assert (2)
266 references to IEqualityComparer
dotnet-svcutil-lib (20)
GenerateDocumentationAndConfigFiles (4)
Metrics (4)
Metrics.Legacy (4)
Microsoft.Build.Framework (2)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Analyzers (4)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.Collections.Package (4)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.InteractiveHost (4)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
Microsoft.CodeAnalysis.Threading.Package (4)
Microsoft.CodeAnalysis.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
mscorlib (1)
netstandard (1)
PresentationFramework (6)
Roslyn.Diagnostics.Analyzers (4)
System.Collections (1)
System.Collections.Immutable (2)
System.Collections.Specialized (14)
System.ComponentModel.TypeConverter (3)
System.Configuration.ConfigurationManager (1)
System.Private.CoreLib (98)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (12)
153private IEqualityComparer? _keycomparer;
225protected IEqualityComparer? EqualityComparer => _keycomparer;
284public Hashtable(int capacity, float loadFactor, IEqualityComparer? equalityComparer) : this(capacity, loadFactor)
295public Hashtable(IEqualityComparer? equalityComparer) : this(0, 1.0f, equalityComparer)
305public Hashtable(int capacity, IEqualityComparer? equalityComparer)
321: this(d, loadFactor, (IEqualityComparer?)null)
331public Hashtable(IDictionary d, IEqualityComparer? equalityComparer)
357public Hashtable(IDictionary d, float loadFactor, IEqualityComparer? equalityComparer)
1046IEqualityComparer? keyComparerForSerilization = _keycomparer;
1061info.AddValue(KeyComparerName, keyComparerForSerilization, typeof(IEqualityComparer));
1123_keycomparer = (IEqualityComparer?)siInfo.GetValue(KeyComparerName, typeof(IEqualityComparer));
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (41)
19int GetHashCode(IEqualityComparer comparer);
121bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
126private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
165int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
170int ITupleInternal.GetHashCode(IEqualityComparer comparer)
175private int GetHashCode(IEqualityComparer comparer)
241bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
246private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
289int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
294int ITupleInternal.GetHashCode(IEqualityComparer comparer)
299private int GetHashCode(IEqualityComparer comparer)
366bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
371private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
418int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
423int ITupleInternal.GetHashCode(IEqualityComparer comparer)
428private int GetHashCode(IEqualityComparer comparer)
501bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
506private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
557int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
562int ITupleInternal.GetHashCode(IEqualityComparer comparer)
567private int GetHashCode(IEqualityComparer comparer)
646bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
651private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
706int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
711int ITupleInternal.GetHashCode(IEqualityComparer comparer)
716private int GetHashCode(IEqualityComparer comparer)
801bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
806private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
865int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
870int ITupleInternal.GetHashCode(IEqualityComparer comparer)
875private int GetHashCode(IEqualityComparer comparer)
966bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
971private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
1034int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
1039int ITupleInternal.GetHashCode(IEqualityComparer comparer)
1044private int GetHashCode(IEqualityComparer comparer)
1146bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
1151private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
1218int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
1223private int GetHashCode(IEqualityComparer comparer)
1252int ITupleInternal.GetHashCode(IEqualityComparer comparer)
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (37)
20int GetHashCode(IEqualityComparer comparer);
55bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer)
104int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
109int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
313bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
369int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
374int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
496/// The <see cref="IEqualityComparer.Equals"/> implementation is called only if <c>other</c> is not <see langword="null"/>,
500/// <see cref="IEqualityComparer.Equals"/> implementation. If this method call returns <see langword="true"/>, the method is
503bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
567int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
572private int GetHashCodeCore(IEqualityComparer comparer)
578int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
693bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
765int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
770private int GetHashCodeCore(IEqualityComparer comparer)
777int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
899bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
979int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
984private int GetHashCodeCore(IEqualityComparer comparer)
992int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
1123bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
1211int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
1216private int GetHashCodeCore(IEqualityComparer comparer)
1225int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
1365bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
1461int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
1466private int GetHashCodeCore(IEqualityComparer comparer)
1476int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
1625bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
1729int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
1734private int GetHashCodeCore(IEqualityComparer comparer)
1745int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
1909bool IStructuralEquatable.Equals(object? other, IEqualityComparer comparer) =>
2083int IStructuralEquatable.GetHashCode(IEqualityComparer comparer)
2088private int GetHashCodeCore(IEqualityComparer comparer)
2158int IValueTupleInternal.GetHashCode(IEqualityComparer comparer)
System.Private.Xml (6)
System.Private.Xml.Linq (3)
System.Runtime (1)
System.Runtime.Caching (2)
Test.Utilities (4)
Text.Analyzers (4)
xunit.assert (21)