20 references to HashFn
PresentationCore (20)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (2)
140
hash =
HashFn
.HashMultiply(hash) + _familyName.GetHashCode();
141
return
HashFn
.HashScramble(hash);
MS\Internal\FontCache\FontSource.cs (1)
115
return
HashFn
.HashString(ToStringUpperInvariant(), 0);
MS\Internal\FontFace\FontFamilyIdentifier.cs (5)
167
hash =
HashFn
.HashMultiply(hash) + family.GetHashCode();
171
return
HashFn
.HashScramble(hash);
447
hash +=
HashFn
.HashMultiply(_baseUri.GetHashCode());
450
hash =
HashFn
.HashMultiply(hash) + _name.GetHashCode();
452
return
HashFn
.HashScramble(hash);
MS\Internal\Shaping\ShapeTypeface.cs (4)
40
return
HashFn
.HashMultiply(_glyphTypeface.GetHashCode())
124
hash =
HashFn
.HashMultiply(hash) + (int)(_nullShape ? 1 : 0);
125
hash =
HashFn
.HashMultiply(hash) + _scaleInEm.GetHashCode();
126
return
HashFn
.HashScramble(hash);
System\Windows\Media\textformatting\NumberSubstitution.cs (3)
229
int hash =
HashFn
.HashMultiply((int)_source) + (int)_substitution;
232
hash =
HashFn
.HashMultiply(hash) + _cultureOverride.GetHashCode();
234
return
HashFn
.HashScramble(hash);
System\Windows\Media\Typeface.cs (5)
668
hash =
HashFn
.HashMultiply(hash) + _fallbackFontFamily.GetHashCode();
670
hash =
HashFn
.HashMultiply(hash) + _style.GetHashCode();
671
hash =
HashFn
.HashMultiply(hash) + _weight.GetHashCode();
672
hash =
HashFn
.HashMultiply(hash) + _stretch.GetHashCode();
673
return
HashFn
.HashScramble(hash);