/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Axis != null) { hashCode = hashCode * 59 + Axis.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (Format != null) { hashCode = hashCode * 59 + Format.GetHashCode(); } if (Minimum != null) { hashCode = hashCode * 59 + Minimum.GetHashCode(); } if (Maximum != null) { hashCode = hashCode * 59 + Maximum.GetHashCode(); } if (Position != null) { hashCode = hashCode * 59 + Position.GetHashCode(); } if (MajorColor != null) { hashCode = hashCode * 59 + MajorColor.GetHashCode(); } if (MajorWidth != null) { hashCode = hashCode * 59 + MajorWidth.GetHashCode(); } if (MajorStyle != null) { hashCode = hashCode * 59 + MajorStyle.GetHashCode(); } if (MinorColor != null) { hashCode = hashCode * 59 + MinorColor.GetHashCode(); } if (MinorWidth != null) { hashCode = hashCode * 59 + MinorWidth.GetHashCode(); } if (MinorStyle != null) { hashCode = hashCode * 59 + MinorStyle.GetHashCode(); } return(hashCode); } }