public override int GetHashCode() { var hashCode = 2043579837; if (HasNoFill()) { return(hashCode); } hashCode = hashCode * -1521134295 + PatternType.GetHashCode(); hashCode = hashCode * -1521134295 + BackgroundColor.GetHashCode(); if (HasNoForeground()) { return(hashCode); } hashCode = hashCode * -1521134295 + PatternColor.GetHashCode(); return(hashCode); }
public override int GetHashCode() { return(BackgroundColor.GetHashCode() ^ (Int32)PatternType ^ PatternColor.GetHashCode()); }