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)
275
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
403
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
467
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
549
int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.
GetHashCode
(ReadOnlySpan<char> span) =>
14 references to GetHashCode
System.Collections.Concurrent (5)
System\Collections\Concurrent\ConcurrentDictionary.cs (5)
2419
int hashcode = comparer.
GetHashCode
(key);
2441
hashcode = comparer.
GetHashCode
(key);
2578
int hashcode = comparer.
GetHashCode
(key);
2623
int hashcode = comparer.
GetHashCode
(key);
2644
hashcode = comparer.
GetHashCode
(key);
System.Collections.Immutable (3)
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.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
810
uint hashCode = (uint)comparer.
GetHashCode
(key);
881
uint hashCode = (uint)comparer.
GetHashCode
(key);
975
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);