39 implementations of IEqualityComparer
mscorlib (8)
system\collections\compatiblecomparer.cs (1)
14internal class CompatibleComparer: IEqualityComparer {
system\collections\generic\equalitycomparer.cs (3)
24public abstract class EqualityComparer<T> : IEqualityComparer, IEqualityComparer<T> 496internal sealed class RandomizedStringEqualityComparer : IEqualityComparer<String>, IEqualityComparer, IWellKnownStringEqualityComparer 563internal sealed class RandomizedObjectEqualityComparer : IEqualityComparer, IWellKnownStringEqualityComparer
system\collections\structuralcomparisons.cs (1)
41internal class StructuralEqualityComparer : IEqualityComparer {
system\resources\__fastresourcecomparer.cs (1)
24internal sealed class FastResourceComparer : IComparer, IEqualityComparer, IComparer<String>, IEqualityComparer<String>
system\security\permissiontoken.cs (1)
28internal sealed class PermissionTokenKeyComparer : IEqualityComparer
system\stringcomparer.cs (1)
18public abstract class StringComparer : IComparer, IEqualityComparer, IComparer<string>, IEqualityComparer<string>{
PresentationFramework (1)
src\Framework\MS\Internal\WeakHashtable.cs (1)
140private class WeakKeyComparer : IEqualityComparer
System (4)
compmod\system\collections\specialized\nameobjectcollectionbase.cs (1)
751internal class CompatibleComparer: IEqualityComparer {
misc\CompatibleIComparer.cs (1)
20internal class BackCompatibleStringComparer : IEqualityComparer {
misc\WeakHashtable.cs (1)
127private class WeakKeyComparer : IEqualityComparer
net\System\Net\WebHeaderCollection.cs (1)
1976internal class CaseInsensitiveAscii : IEqualityComparer, IComparer{
System.Activities (1)
System\Activities\Expressions\AssemblyNameEqualityComparer.cs (1)
13class AssemblyNameEqualityComparer : IEqualityComparer, IEqualityComparer<AssemblyName>
System.Data.Linq (2)
IdentityManager.cs (1)
212internal class Comparer : IEqualityComparer<MultiKey<T1, T2>>, IEqualityComparer {
SqlClient\Common\TypeSystem.cs (1)
232internal struct MetaPosition : IEqualityComparer<MetaPosition>, IEqualityComparer {
System.Data.Services (1)
parent\Client\System\Data\Services\Client\ReferenceEqualityComparer.cs (1)
29internal class ReferenceEqualityComparer : IEqualityComparer
System.Data.Services.Client (1)
System\Data\Services\Client\ReferenceEqualityComparer.cs (1)
29internal class ReferenceEqualityComparer : IEqualityComparer
System.IdentityModel (5)
System\IdentityModel\Claims\ClaimComparer.cs (5)
158class ObjectComparer : IEqualityComparer 177class BinaryObjectComparer : IEqualityComparer 217class RsaObjectComparer : IEqualityComparer 260class X500DistinguishedNameObjectComparer : IEqualityComparer 297class UpnObjectComparer : IEqualityComparer
System.Runtime.Caching (1)
System\Caching\MemoryCacheKeyEqualityComparer.cs (1)
8internal class MemoryCacheEqualityComparer: IEqualityComparer {
System.Runtime.Serialization (1)
System\Runtime\Serialization\DataContract.cs (1)
2666class HashTableEqualityComparer : IEqualityComparer
System.ServiceModel (1)
System\ServiceModel\Security\InMemoryNonceCache.cs (1)
92internal sealed class NonceKeyComparer : IEqualityComparer, System.Collections.Generic.IEqualityComparer<byte[]>
System.Web (3)
Configuration\WebBaseEventKeyComparer.cs (1)
13internal class WebBaseEventKeyComparer : IEqualityComparer {
FileChangesMonitor.cs (1)
100class DaclComparer : IEqualityComparer {
UI\RootBuilder.cs (1)
88private class ReferenceKeyComparer : IComparer, IEqualityComparer {
System.Web.Extensions (2)
Script\Serialization\JavaScriptSerializer.cs (1)
391private class ReferenceComparer : IEqualityComparer {
Util\ListEqualityComparer.cs (1)
13internal sealed class ListEqualityComparer : IEqualityComparer {
System.Windows.Forms (2)
misc\CompatibleIComparer.cs (1)
20internal class BackCompatibleStringComparer : IEqualityComparer {
misc\WeakHashtable.cs (1)
127private class WeakKeyComparer : IEqualityComparer
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
17private class TypeArrayComparer : IEqualityComparer
System.Workflow.Runtime (1)
WorkflowDefinitionDispenser.cs (1)
571private class DigestComparerWrapper : IEqualityComparer
System.Xml (2)
System\Xml\Serialization\CodeIdentifiers.cs (1)
15class CaseInsensitiveKeyComparer : CaseInsensitiveComparer, IEqualityComparer{
System\Xml\XPath\XPathNavigatorKeyComparer.cs (1)
15internal class XPathNavigatorKeyComparer : IEqualityComparer {
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
2085IEqualityComparer,
WindowsBase (1)
Base\MS\Internal\IO\Packaging\CaseInsensitiveOrdinalStringComparer.cs (1)
27IEqualityComparer, IComparer
148 references to IEqualityComparer
mscorlib (62)
system\array.cs (2)
777Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 812int IStructuralEquatable.GetHashCode(IEqualityComparer comparer) {
system\collections\generic\equalitycomparer.cs (6)
107int IEqualityComparer.GetHashCode(object obj) { 114bool IEqualityComparer.Equals(object x, object y) { 551IEqualityComparer IWellKnownStringEqualityComparer.GetRandomizedEqualityComparer() { 556IEqualityComparer IWellKnownStringEqualityComparer.GetEqualityComparerForSerialization() { 602IEqualityComparer IWellKnownStringEqualityComparer.GetRandomizedEqualityComparer() { 607IEqualityComparer IWellKnownStringEqualityComparer.GetEqualityComparerForSerialization() {
system\collections\hashtable.cs (14)
168private IEqualityComparer _keycomparer; 232protected IEqualityComparer EqualityComparer 324public Hashtable(int capacity, float loadFactor, IEqualityComparer equalityComparer) : this(capacity, loadFactor) { 336public Hashtable(IEqualityComparer equalityComparer) : this(0, 1.0f, equalityComparer) { 348public Hashtable(int capacity, IEqualityComparer equalityComparer) 362: this(d, loadFactor, (IEqualityComparer)null) { 370public Hashtable(IDictionary d, IEqualityComparer equalityComparer) 385public Hashtable(IDictionary d, float loadFactor, IEqualityComparer equalityComparer) 1173IEqualityComparer keyComparerForSerilization = (IEqualityComparer) HashHelpers.GetEqualityComparerForSerialization(_keycomparer); 1188info.AddValue(KeyComparerName, keyComparerForSerilization, typeof(IEqualityComparer)); 1246_keycomparer = (IEqualityComparer)siInfo.GetValue(KeyComparerName, typeof(IEqualityComparer)); 1770public static IEqualityComparer GetRandomizedEqualityComparer(object comparer)
system\collections\istructuralequatable.cs (2)
4Boolean Equals(Object other, IEqualityComparer comparer); 5int GetHashCode(IEqualityComparer comparer);
system\collections\structuralcomparisons.cs (3)
15private static volatile IEqualityComparer s_StructuralEqualityComparer; 28public static IEqualityComparer StructuralEqualityComparer { 30IEqualityComparer comparer = s_StructuralEqualityComparer;
system\stringcomparer.cs (10)
237IEqualityComparer IWellKnownStringEqualityComparer.GetRandomizedEqualityComparer() { 241IEqualityComparer IWellKnownStringEqualityComparer.GetEqualityComparerForSerialization() { 304IEqualityComparer IWellKnownStringEqualityComparer.GetRandomizedEqualityComparer() { 309IEqualityComparer IWellKnownStringEqualityComparer.GetEqualityComparerForSerialization() { 382IEqualityComparer IWellKnownStringEqualityComparer.GetRandomizedEqualityComparer() { 386IEqualityComparer IWellKnownStringEqualityComparer.GetEqualityComparerForSerialization() { 458IEqualityComparer IWellKnownStringEqualityComparer.GetRandomizedEqualityComparer() { 463IEqualityComparer IWellKnownStringEqualityComparer.GetEqualityComparerForSerialization() { 472IEqualityComparer GetRandomizedEqualityComparer(); 474IEqualityComparer GetEqualityComparerForSerialization();
system\tuple.cs (25)
15int GetHashCode(IEqualityComparer comparer); 97Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 129Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 133Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) { 187Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 225Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 229Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) { 292Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 334Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 338Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) { 408Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 454Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 458Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) { 535Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 585Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 589Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) { 673Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 727Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 731Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) { 822Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 880Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 884Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) { 986Boolean IStructuralEquatable.Equals(Object other, IEqualityComparer comparer) { 1048Int32 IStructuralEquatable.GetHashCode(IEqualityComparer comparer) { 1075Int32 ITupleInternal.GetHashCode(IEqualityComparer comparer) {
PresentationFramework (3)
src\Framework\MS\Internal\WeakHashtable.cs (3)
27private static IEqualityComparer _comparer = new WeakKeyComparer(); 142bool IEqualityComparer.Equals(object x, object y) 178int IEqualityComparer.GetHashCode(object obj)
System (22)
compmod\system\collections\specialized\nameobjectcollectionbase.cs (7)
44private IEqualityComparer _keyComparer; 62protected NameObjectCollectionBase(IEqualityComparer equalityComparer) 68protected NameObjectCollectionBase(Int32 capacity, IEqualityComparer equalityComparer) : this (equalityComparer) 154info.AddValue(KeyComparerName, _keyComparer, typeof(IEqualityComparer)); 217_keyComparer = (IEqualityComparer)info.GetValue(KeyComparerName, typeof(IEqualityComparer)); 285internal IEqualityComparer Comparer
compmod\system\collections\specialized\namevaluecollection.cs (2)
74public NameValueCollection(IEqualityComparer equalityComparer) : base( equalityComparer) { 77public NameValueCollection(Int32 capacity, IEqualityComparer equalityComparer)
compmod\system\collections\specialized\ordereddictionary.cs (6)
34private IEqualityComparer _comparer; 50public OrderedDictionary(IEqualityComparer comparer) : this(0, comparer) { 53public OrderedDictionary(int capacity, IEqualityComparer comparer) { 283_comparer = (IEqualityComparer)_siInfo.GetValue(KeyComparerName, typeof(IEqualityComparer)); 364info.AddValue(KeyComparerName, _comparer, typeof(IEqualityComparer));
compmod\system\collections\specialized\stringdictionarywithcomparer.cs (1)
26public StringDictionaryWithComparer(IEqualityComparer comparer) {
misc\CompatibleIComparer.cs (2)
22static internal IEqualityComparer Default = new BackCompatibleStringComparer(); 44bool IEqualityComparer.Equals(Object a, Object b) {
misc\WeakHashtable.cs (3)
21private static IEqualityComparer _comparer = new WeakKeyComparer(); 129bool IEqualityComparer.Equals(Object x, Object y) 164int IEqualityComparer.GetHashCode (Object obj)
sys\system\configuration\ReadOnlyNameValueCollection.cs (1)
16internal ReadOnlyNameValueCollection(IEqualityComparer equalityComparer) : base(equalityComparer) {
System.Data.Linq (4)
IdentityManager.cs (2)
230bool IEqualityComparer.Equals(object x, object y) { 234int IEqualityComparer.GetHashCode(object x) {
SqlClient\Common\TypeSystem.cs (2)
273bool IEqualityComparer.Equals(object x, object y) { 276int IEqualityComparer.GetHashCode(object obj) {
System.Data.Services (2)
parent\Client\System\Data\Services\Client\ReferenceEqualityComparer.cs (2)
55bool IEqualityComparer.Equals(object x, object y) 66int IEqualityComparer.GetHashCode(object obj)
System.Data.Services.Client (2)
System\Data\Services\Client\ReferenceEqualityComparer.cs (2)
55bool IEqualityComparer.Equals(object x, object y) 66int IEqualityComparer.GetHashCode(object obj)
System.IdentityModel (13)
System\IdentityModel\Claims\ClaimComparer.cs (13)
24IEqualityComparer resourceComparer; 26ClaimComparer(IEqualityComparer resourceComparer) 160bool IEqualityComparer.Equals(object obj1, object obj2) 169int IEqualityComparer.GetHashCode(object obj) 179bool IEqualityComparer.Equals(object obj1, object obj2) 201int IEqualityComparer.GetHashCode(object obj) 219bool IEqualityComparer.Equals(object obj1, object obj2) 249int IEqualityComparer.GetHashCode(object obj) 262IEqualityComparer binaryComparer; 268bool IEqualityComparer.Equals(object obj1, object obj2) 287int IEqualityComparer.GetHashCode(object obj) 299bool IEqualityComparer.Equals(object obj1, object obj2) 321int IEqualityComparer.GetHashCode(object obj)
System.Messaging (1)
System\Messaging\MessageQueuePermission.cs (1)
120private static IEqualityComparer GetComparer()
System.Runtime.Caching (2)
System\Caching\MemoryCacheKeyEqualityComparer.cs (2)
10bool IEqualityComparer.Equals(Object x, Object y) { 21int IEqualityComparer.GetHashCode(Object obj) {
System.Runtime.Serialization (1)
System\Runtime\Serialization\DataContract.cs (1)
2668bool IEqualityComparer.Equals(object x, object y)
System.ServiceModel (1)
System\ServiceModel\Security\TimeBoundedCache.cs (1)
30protected TimeBoundedCache(int lowWaterMark, int maxCacheItems, IEqualityComparer keyComparer, PurgingMode purgingMode, TimeSpan purgeInterval, bool doRemoveNotification)
System.Web (4)
FileChangesMonitor.cs (2)
115bool IEqualityComparer.Equals(Object x, Object y) { 134int IEqualityComparer.GetHashCode(Object obj) {
UI\RootBuilder.cs (2)
91bool IEqualityComparer.Equals(object x, object y) { 95int IEqualityComparer.GetHashCode(object obj) {
System.Web.Extensions (4)
Script\Serialization\JavaScriptSerializer.cs (2)
392bool IEqualityComparer.Equals(object x, object y) { 396int IEqualityComparer.GetHashCode(object obj) {
Util\ListEqualityComparer.cs (2)
20bool IEqualityComparer.Equals(object x, object y) { 41int IEqualityComparer.GetHashCode(object obj) {
System.Windows.Forms (5)
misc\CompatibleIComparer.cs (2)
22static internal IEqualityComparer Default = new BackCompatibleStringComparer(); 44bool IEqualityComparer.Equals(Object a, Object b) {
misc\WeakHashtable.cs (3)
21private static IEqualityComparer _comparer = new WeakKeyComparer(); 129bool IEqualityComparer.Equals(Object x, Object y) 164int IEqualityComparer.GetHashCode (Object obj)
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (2)
21bool IEqualityComparer.Equals(object x, object y) 41int IEqualityComparer.GetHashCode(object obj)
System.Workflow.Runtime (3)
WorkflowDefinitionDispenser.cs (3)
387this.hashtable = new Hashtable((IEqualityComparer)new DigestComparerWrapper()); 574bool IEqualityComparer.Equals(object object1, object object2) 579int IEqualityComparer.GetHashCode(object obj)
System.Xml (6)
System\Xml\Serialization\CodeIdentifiers.cs (3)
19bool IEqualityComparer.Equals(Object x, Object y) { 23int IEqualityComparer.GetHashCode(Object obj) { 52IEqualityComparer comparer = new CaseInsensitiveKeyComparer();
System\Xml\XPath\XPathNavigator.cs (1)
464public static IEqualityComparer NavigatorComparer {
System\Xml\XPath\XPathNavigatorKeyComparer.cs (2)
16bool IEqualityComparer.Equals( Object obj1, Object obj2 ) { 26int IEqualityComparer.GetHashCode ( Object obj ) {
System.Xml.Linq (2)
System\Xml\Linq\XLinq.cs (2)
2146bool IEqualityComparer.Equals(object x, object y) { 2164int IEqualityComparer.GetHashCode(object obj) {
WindowsBase (9)
Base\MS\Internal\IO\Packaging\CaseInsensitiveOrdinalStringComparer.cs (2)
30bool IEqualityComparer.Equals(Object x, Object y) 46int IEqualityComparer.GetHashCode(Object str)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (2)
1156if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals( 1163else if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (3)
749if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(transformClassName, 754else if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(transformClassName, 1624if (!((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(_fileFormatVersion.FeatureIdentifier,
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (2)
300if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(name, 921if(((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(streamName,