20 references to HashFn
PresentationCore (20)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (2)
145
hash =
HashFn
.HashMultiply(hash) + _familyName.GetHashCode();
146
return
HashFn
.HashScramble(hash);
MS\Internal\FontCache\FontSource.cs (1)
126
return
HashFn
.HashString(ToStringUpperInvariant(), 0);
MS\Internal\FontFace\FontFamilyIdentifier.cs (5)
180
hash =
HashFn
.HashMultiply(hash) + family.GetHashCode();
184
return
HashFn
.HashScramble(hash);
460
hash +=
HashFn
.HashMultiply(_baseUri.GetHashCode());
463
hash =
HashFn
.HashMultiply(hash) + _name.GetHashCode();
465
return
HashFn
.HashScramble(hash);
MS\Internal\Shaping\ShapeTypeface.cs (4)
56
return
HashFn
.HashMultiply(_glyphTypeface.GetHashCode())
140
hash =
HashFn
.HashMultiply(hash) + (int)(_nullShape ? 1 : 0);
141
hash =
HashFn
.HashMultiply(hash) + _scaleInEm.GetHashCode();
142
return
HashFn
.HashScramble(hash);
System\Windows\Media\textformatting\NumberSubstitution.cs (3)
247
int hash =
HashFn
.HashMultiply((int)_source) + (int)_substitution;
250
hash =
HashFn
.HashMultiply(hash) + _cultureOverride.GetHashCode();
252
return
HashFn
.HashScramble(hash);
System\Windows\Media\Typeface.cs (5)
678
hash =
HashFn
.HashMultiply(hash) + _fallbackFontFamily.GetHashCode();
680
hash =
HashFn
.HashMultiply(hash) + _style.GetHashCode();
681
hash =
HashFn
.HashMultiply(hash) + _weight.GetHashCode();
682
hash =
HashFn
.HashMultiply(hash) + _stretch.GetHashCode();
683
return
HashFn
.HashScramble(hash);