/// <inheritdoc/> public override int GetHashCode() { int hashCode = 0; unchecked { if (name != null) { hashCode += 1000000007 * name.GetHashCode(); } hashCode += 1000000009 * fontWeight.GetHashCode(); hashCode += 1000000021 * fontStyle.GetHashCode(); if (foreground != null) { hashCode += 1000000033 * foreground.GetHashCode(); } if (background != null) { hashCode += 1000000087 * background.GetHashCode(); } if (fontFamily != null) { hashCode += 1000000123 * fontFamily.GetHashCode(); } if (fontSize != null) { hashCode += 1000000167 * fontSize.GetHashCode(); } } return(hashCode); }
/// <inheritdoc/> public override int GetHashCode() { int hashCode = 0; unchecked { if (name != null) hashCode += 1000000007 * name.GetHashCode(); hashCode += 1000000009 * fontWeight.GetHashCode(); hashCode += 1000000021 * fontStyle.GetHashCode(); if (foreground != null) hashCode += 1000000033 * foreground.GetHashCode(); if (background != null) hashCode += 1000000087 * background.GetHashCode(); } return hashCode; }