public override int GetHashCode() { int ret = 0; ret += Family == null ? 0 : Family.GetHashCode(); ret += Size; ret += Bold.GetHashCode(); ret += Italic.GetHashCode(); ret += Underline.GetHashCode(); return(ret); }
public override int GetHashCode() { unchecked { int result = (Name != null ? Name.GetHashCode() : 0); result = (result * 397) ^ Size; result = (result * 397) ^ Bold.GetHashCode(); result = (result * 397) ^ Italic.GetHashCode(); result = (result * 397) ^ Underline.GetHashCode(); result = (result * 397) ^ TextColor.GetHashCode(); return(result); } }
public override int GetHashCode() { var hash = base.GetHashCode(); if (Action != null) { hash = hash * 23 + Action.GetHashCode(); } hash = hash * 23 + TextColor.GetHashCode(); hash = hash * 23 + BackgroundColor.GetHashCode(); hash = hash * 23 + Underline.GetHashCode(); hash = hash * 23 + Strikethrough.GetHashCode(); return(hash); }
public override int GetHashCode() { int hash = base.GetHashCode(); hash ^= ForegroundColor.GetHashCode(); hash ^= BackgroundColor.GetHashCode(); hash ^= Underline.GetHashCode(); hash ^= Bold.GetHashCode(); hash ^= Italic.GetHashCode(); if (Text != null) { hash ^= Text.GetHashCode(); } return(hash); }
/// <summary>Serves as the default hash function. </summary> /// <returns>A hash code for the current object.</returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { var hashCode = (Color != null ? Color.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Bold.GetHashCode(); hashCode = (hashCode * 397) ^ Italic.GetHashCode(); hashCode = (hashCode * 397) ^ Underline.GetHashCode(); hashCode = (hashCode * 397) ^ (BackgroundColor != null ? BackgroundColor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BorderColor != null ? BorderColor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Roman.GetHashCode(); hashCode = (hashCode * 397) ^ Sans.GetHashCode(); hashCode = (hashCode * 397) ^ Mono.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { var hashCode = 1158783753; hashCode = hashCode * -1521134295 + Bold.GetHashCode(); hashCode = hashCode * -1521134295 + Italic.GetHashCode(); hashCode = hashCode * -1521134295 + Underline.GetHashCode(); hashCode = hashCode * -1521134295 + Strikethrough.GetHashCode(); hashCode = hashCode * -1521134295 + VerticalAlignment.GetHashCode(); hashCode = hashCode * -1521134295 + Shadow.GetHashCode(); hashCode = hashCode * -1521134295 + FontSize.GetHashCode(); hashCode = hashCode * -1521134295 + FontColor.GetHashCode(); hashCode = hashCode * -1521134295 + StringComparer.InvariantCultureIgnoreCase.GetHashCode(FontName); hashCode = hashCode * -1521134295 + FontFamilyNumbering.GetHashCode(); hashCode = hashCode * -1521134295 + FontCharSet.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Name.GetHashCode(); if (Size != null) { hash = hash * 23 + Size.GetHashCode(); } if (FontFamily != null) { hash = hash * 23 + FontFamily.GetHashCode(); } if (VerticalTextAlignment != null) { hash = hash * 23 + VerticalTextAlignment.GetHashCode(); } if (Underline != null) { hash = hash * 23 + Underline.GetHashCode(); } if (Shadow != null) { hash = hash * 23 + Shadow.GetHashCode(); } if (Extend != null) { hash = hash * 23 + Extend.GetHashCode(); } if (FontCharSet != null) { hash = hash * 23 + FontCharSet.GetHashCode(); } if (Condense != null) { hash = hash * 23 + Condense.GetHashCode(); } if (Strike != null) { hash = hash * 23 + Strike.GetHashCode(); } if (Italic != null) { hash = hash * 23 + Italic.GetHashCode(); } if (Bold != null) { hash = hash * 23 + Bold.GetHashCode(); } if (Color != null) { hash = hash * 23 + Color.GetHashCode(); } if (FontScheme != null) { hash = hash * 23 + FontScheme.GetHashCode(); } return(hash); } }