9 implementations of Equals
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
302public bool Equals(ReadOnlySpan<char> span, string target)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (2)
94bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 126bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
62bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> alternate, string? other) 107bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> alternate, string? other)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (4)
278bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 382bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 456bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 538bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
19 references to Equals
System.Collections.Concurrent (3)
System\Collections\Concurrent\ConcurrentDictionary.cs (3)
2427if (hashcode == node._hashcode && comparer.Equals(key, node._key)) 2556if (hashcode == n._hashcode && comparer.Equals(key, n._key)) 2629if (hashcode == curr._hashcode && comparer.Equals(key, curr._key))
System.Collections.Immutable (8)
System\Collections\Frozen\DefaultFrozenDictionary.AlternateLookup.cs (1)
48if (hashCode == _hashTable.HashCodes[index] && comparer.Equals(key, _keys[index]))
System\Collections\Frozen\DefaultFrozenSet.AlternateLookup.cs (1)
44if (hashCode == _hashTable.HashCodes[index] && comparer.Equals(item, _items[index]))
System\Collections\Frozen\Int32\Int32FrozenDictionary.AlternateLookup.cs (1)
49if (comparer.Equals(key, hashCodes[index]))
System\Collections\Frozen\Int32\Int32FrozenSet.AlternateLookup.cs (1)
46if (comparer.Equals(item, hashCodes[index]))
System\Collections\Frozen\SmallFrozenDictionary.AlternateLookup.cs (1)
46if (comparer.Equals(key, keys[i]))
System\Collections\Frozen\SmallFrozenSet.AlternateLookup.cs (1)
42if (comparer.Equals(item, items[i]))
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.AlternateLookup.cs (1)
45if (comparer.Equals(key, keys[index]))
System\Collections\Frozen\String\LengthBucketsFrozenSet.AlternateLookup.cs (1)
44if (comparer.Equals(item, items[index]))
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
825if (entry.hashCode == hashCode && comparer.Equals(key, entry.key)) 891if (entry.hashCode == hashCode && comparer.Equals(key, entry.key)) 984if (entries[i].hashCode == hashCode && comparer.Equals(key, entries[i].key))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (3)
479if (entry.HashCode == hashCode && comparer.Equals(item, entry.Value)) 563if (entry.HashCode == hashCode && comparer.Equals(item, entry.Value)) 651if (entry.HashCode == hashCode && comparer.Equals(item, entry.Value))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IAlternateEqualityComparer.cs (2)
28/// method on any <typeparamref name="T"/> for which <see cref="Equals(TAlternate, T)"/> 34/// Creates a <typeparamref name="T"/> that is considered by <see cref="Equals(TAlternate, T)"/> to be equal