public override int GetHashCode() { var hash = 0x75417862; if (Name != null) { hash ^= Name.GetHashCode(); } hash ^= Size.GetHashCode(); hash ^= Style.GetHashCode(); hash ^= Unit.GetHashCode(); return(hash); }
private int ComputeHash() { var hash = 27; if (Name != null) { hash = hash * 486187739 + Name.GetHashCode(); } hash = hash * 486187739 + _sizeEquality.GetHashCode(); hash = hash * 486187739 + Style.GetHashCode(); hash = hash * 486187739 + Unit.GetHashCode(); return(hash); }
public override int GetHashCode() { if (_hashCode == 0) { _hashCode = 17; unchecked { _hashCode = _hashCode * 23 + _name.GetHashCode(); _hashCode = _hashCode * 23 + FontFamily.GetHashCode(); _hashCode = _hashCode * 23 + _size.GetHashCode(); _hashCode = _hashCode * 23 + _unit.GetHashCode(); _hashCode = _hashCode * 23 + _style.GetHashCode(); _hashCode = _hashCode * 23 + _gdiCharSet; _hashCode = _hashCode * 23 + _gdiVerticalFont.GetHashCode(); } } return(_hashCode); }