13 references to GetHashCodeOrdinal
System.Collections.Immutable (13)
System\Collections\Frozen\String\KeyAnalyzer.cs (1)
313
public override int GetHashCode(string s) => Hashing.
GetHashCodeOrdinal
(s.AsSpan(IsLeft ? Index : (s.Length + Index), Count));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_Full.cs (2)
30
private protected override int GetHashCode(string s) => Hashing.
GetHashCodeOrdinal
(s.AsSpan());
31
private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.
GetHashCodeOrdinal
(s);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSubstring.cs (2)
28
private protected override int GetHashCode(string s) => Hashing.
GetHashCodeOrdinal
(s.AsSpan(HashIndex, HashCount));
29
private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.
GetHashCodeOrdinal
(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSubstring.cs (2)
28
private protected override int GetHashCode(string s) => Hashing.
GetHashCodeOrdinal
(s.AsSpan(s.Length + HashIndex, HashCount));
29
private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.
GetHashCodeOrdinal
(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_Full.cs (2)
27
private protected override int GetHashCode(string s) => Hashing.
GetHashCodeOrdinal
(s.AsSpan());
28
private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.
GetHashCodeOrdinal
(s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedSubstring.cs (2)
25
private protected override int GetHashCode(string s) => Hashing.
GetHashCodeOrdinal
(s.AsSpan(HashIndex, HashCount));
26
private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.
GetHashCodeOrdinal
(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedSubstring.cs (2)
25
private protected override int GetHashCode(string s) => Hashing.
GetHashCodeOrdinal
(s.AsSpan(s.Length + HashIndex, HashCount));
26
private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.
GetHashCodeOrdinal
(s.Slice(s.Length + HashIndex, HashCount));