public override int GetHashCode() { var hashCode = -2037960190; hashCode = hashCode * -1521134295 + color.GetHashCode(); hashCode = hashCode * -1521134295 + font.GetHashCode(); hashCode = hashCode * -1521134295 + fontSize.GetHashCode(); hashCode = hashCode * -1521134295 + unityFontStyle.GetHashCode(); hashCode = hashCode * -1521134295 + unityTextAlign.GetHashCode(); hashCode = hashCode * -1521134295 + visibility.GetHashCode(); hashCode = hashCode * -1521134295 + whiteSpace.GetHashCode(); return(hashCode); }
/// <summary> /// Generates a hash code for use in hashtables and dictionaries. /// </summary> /// <returns>An integer usable as a hash value in hashtables.</returns> public override Int32 GetHashCode() { return(7602046 ^ _color.GetHashCode()); }