9 implementations of GetHashCode
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
313
public int
GetHashCode
(ReadOnlySpan<char> span) => string.GetHashCode(span);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (2)
91
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
123
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
88
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> alternate) =>
133
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> alternate) =>
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (4)
273
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
401
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
465
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
547
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
15 references to GetHashCode
System.Collections.Immutable (4)
System\Collections\Frozen\DefaultFrozenDictionary.AlternateLookup.cs (1)
43
int hashCode = comparer.
GetHashCode
(key);
System\Collections\Frozen\DefaultFrozenSet.AlternateLookup.cs (1)
39
int hashCode = item is null ? 0 : comparer.
GetHashCode
(item);
System\Collections\Frozen\Int32\Int32FrozenDictionary.AlternateLookup.cs (1)
44
_hashTable.FindMatchingEntries(comparer.
GetHashCode
(key), out int index, out int endIndex);
System\Collections\Frozen\Int32\Int32FrozenSet.AlternateLookup.cs (1)
41
_hashTable.FindMatchingEntries(comparer.
GetHashCode
(item), out int index, out int endIndex);
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (5)
2389
int hashcode = comparer.
GetHashCode
(key);
2411
hashcode = comparer.
GetHashCode
(key);
2548
int hashcode = comparer.
GetHashCode
(key);
2593
int hashcode = comparer.
GetHashCode
(key);
2614
hashcode = comparer.
GetHashCode
(key);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
811
uint hashCode = (uint)comparer.
GetHashCode
(key);
882
uint hashCode = (uint)comparer.
GetHashCode
(key);
976
uint hashCode = (uint)comparer.
GetHashCode
(key);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (3)
473
hashCode = comparer.
GetHashCode
(item);
554
int hashCode = item is not null ? comparer.
GetHashCode
(item) : 0;
636
int hashCode = comparer.
GetHashCode
(item);