20 references to HashFn
PresentationCore (20)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (2)
141
hash =
HashFn
.HashMultiply(hash) + _familyName.GetHashCode();
142
return
HashFn
.HashScramble(hash);
MS\Internal\FontCache\FontSource.cs (1)
116
return
HashFn
.HashString(ToStringUpperInvariant(), 0);
MS\Internal\FontFace\FontFamilyIdentifier.cs (5)
168
hash =
HashFn
.HashMultiply(hash) + family.GetHashCode();
172
return
HashFn
.HashScramble(hash);
448
hash +=
HashFn
.HashMultiply(_baseUri.GetHashCode());
451
hash =
HashFn
.HashMultiply(hash) + _name.GetHashCode();
453
return
HashFn
.HashScramble(hash);
MS\Internal\Shaping\ShapeTypeface.cs (4)
41
return
HashFn
.HashMultiply(_glyphTypeface.GetHashCode())
125
hash =
HashFn
.HashMultiply(hash) + (int)(_nullShape ? 1 : 0);
126
hash =
HashFn
.HashMultiply(hash) + _scaleInEm.GetHashCode();
127
return
HashFn
.HashScramble(hash);
System\Windows\Media\textformatting\NumberSubstitution.cs (3)
233
int hash =
HashFn
.HashMultiply((int)_source) + (int)_substitution;
236
hash =
HashFn
.HashMultiply(hash) + _cultureOverride.GetHashCode();
238
return
HashFn
.HashScramble(hash);
System\Windows\Media\Typeface.cs (5)
669
hash =
HashFn
.HashMultiply(hash) + _fallbackFontFamily.GetHashCode();
671
hash =
HashFn
.HashMultiply(hash) + _style.GetHashCode();
672
hash =
HashFn
.HashMultiply(hash) + _weight.GetHashCode();
673
hash =
HashFn
.HashMultiply(hash) + _stretch.GetHashCode();
674
return
HashFn
.HashScramble(hash);