public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Packing != null) { hashCode = hashCode * 59 + Packing.GetHashCode(); } if (SquarifyRatio != null) { hashCode = hashCode * 59 + SquarifyRatio.GetHashCode(); } if (Flip != null) { hashCode = hashCode * 59 + Flip.GetHashCode(); } if (Pad != null) { hashCode = hashCode * 59 + Pad.GetHashCode(); } return(hashCode); } }