39 references to Hashing
System.Collections.Immutable (39)
System\Collections\Frozen\String\KeyAnalyzer.cs (3)
313
public override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinal(s.AsSpan(IsLeft ? Index : (s.Length + Index), Count));
319
public override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.AsSpan(IsLeft ? Index : (s.Length + Index), Count));
325
public override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan(IsLeft ? Index : (s.Length + Index), Count));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_Full.cs (2)
29
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinal(s.AsSpan());
30
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinal(s);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_FullCaseInsensitive.cs (2)
29
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.AsSpan());
30
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_FullCaseInsensitiveAscii.cs (2)
29
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan());
30
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedCaseInsensitiveAsciiSubstring.cs (2)
27
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan(HashIndex, HashCount));
28
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedCaseInsensitiveSubstring.cs (2)
27
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.AsSpan(HashIndex, HashCount));
28
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSubstring.cs (2)
27
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinal(s.AsSpan(HashIndex, HashCount));
28
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinal(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedCaseInsensitiveAsciiSubstring.cs (2)
27
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan(s.Length + HashIndex, HashCount));
28
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedCaseInsensitiveSubstring.cs (2)
27
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.AsSpan(s.Length + HashIndex, HashCount));
28
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSubstring.cs (2)
27
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinal(s.AsSpan(s.Length + HashIndex, HashCount));
28
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinal(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_Full.cs (2)
26
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinal(s.AsSpan());
27
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinal(s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_FullCaseInsensitive.cs (2)
28
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.AsSpan());
29
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_FullCaseInsensitiveAscii.cs (2)
28
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan());
29
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedCaseInsensitiveAsciiSubstring.cs (2)
26
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan(HashIndex, HashCount));
27
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedCaseInsensitiveSubstring.cs (2)
26
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.AsSpan(HashIndex, HashCount));
27
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedSubstring.cs (2)
24
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinal(s.AsSpan(HashIndex, HashCount));
25
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinal(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedCaseInsensitiveAsciiSubstring.cs (2)
26
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan(s.Length + HashIndex, HashCount));
27
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedCaseInsensitiveSubstring.cs (2)
26
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.AsSpan(s.Length + HashIndex, HashCount));
27
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinalIgnoreCase(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedSubstring.cs (2)
24
private protected override int GetHashCode(string s) =>
Hashing
.GetHashCodeOrdinal(s.AsSpan(s.Length + HashIndex, HashCount));
25
private protected override int GetHashCode(ReadOnlySpan<char> s) =>
Hashing
.GetHashCodeOrdinal(s.Slice(s.Length + HashIndex, HashCount));