9 implementations of GetHashCode
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
313public int GetHashCode(ReadOnlySpan<char> span) => string.GetHashCode(span);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (2)
91int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 123int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
88int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> alternate) => 133int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> alternate) =>
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (4)
275int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 403int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 467int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 549int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
14 references to GetHashCode
System.Collections.Concurrent (5)
System\Collections\Concurrent\ConcurrentDictionary.cs (5)
2419int hashcode = comparer.GetHashCode(key); 2441hashcode = comparer.GetHashCode(key); 2578int hashcode = comparer.GetHashCode(key); 2623int hashcode = comparer.GetHashCode(key); 2644hashcode = comparer.GetHashCode(key);
System.Collections.Immutable (3)
System\Collections\Frozen\DefaultFrozenDictionary.AlternateLookup.cs (1)
43int hashCode = comparer.GetHashCode(key);
System\Collections\Frozen\DefaultFrozenSet.AlternateLookup.cs (1)
39int 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)
810uint hashCode = (uint)comparer.GetHashCode(key); 881uint hashCode = (uint)comparer.GetHashCode(key); 975uint hashCode = (uint)comparer.GetHashCode(key);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (3)
473hashCode = comparer.GetHashCode(item); 554int hashCode = item is not null ? comparer!.GetHashCode(item) : 0; 636int hashCode = comparer.GetHashCode(item);