public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (AnnotationPosition != null) { hashCode = hashCode * 59 + AnnotationPosition.GetHashCode(); } if (AnnotationTail != null) { hashCode = hashCode * 59 + AnnotationTail.GetHashCode(); } if (AnnotationText != null) { hashCode = hashCode * 59 + AnnotationText.GetHashCode(); } if (AxisTitleText != null) { hashCode = hashCode * 59 + AxisTitleText.GetHashCode(); } if (ColorbarPosition != null) { hashCode = hashCode * 59 + ColorbarPosition.GetHashCode(); } if (ColorbarTitleText != null) { hashCode = hashCode * 59 + ColorbarTitleText.GetHashCode(); } if (LegendPosition != null) { hashCode = hashCode * 59 + LegendPosition.GetHashCode(); } if (LegendText != null) { hashCode = hashCode * 59 + LegendText.GetHashCode(); } if (ShapePosition != null) { hashCode = hashCode * 59 + ShapePosition.GetHashCode(); } if (TitleText != null) { hashCode = hashCode * 59 + TitleText.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public bool Equals([AllowNull] Edits other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AnnotationPosition == other.AnnotationPosition || AnnotationPosition != null && AnnotationPosition.Equals(other.AnnotationPosition) ) && ( AnnotationTail == other.AnnotationTail || AnnotationTail != null && AnnotationTail.Equals(other.AnnotationTail) ) && ( AnnotationText == other.AnnotationText || AnnotationText != null && AnnotationText.Equals(other.AnnotationText) ) && ( AxisTitleText == other.AxisTitleText || AxisTitleText != null && AxisTitleText.Equals(other.AxisTitleText) ) && ( ColorbarPosition == other.ColorbarPosition || ColorbarPosition != null && ColorbarPosition.Equals(other.ColorbarPosition) ) && ( ColorbarTitleText == other.ColorbarTitleText || ColorbarTitleText != null && ColorbarTitleText.Equals(other.ColorbarTitleText) ) && ( LegendPosition == other.LegendPosition || LegendPosition != null && LegendPosition.Equals(other.LegendPosition) ) && ( LegendText == other.LegendText || LegendText != null && LegendText.Equals(other.LegendText) ) && ( ShapePosition == other.ShapePosition || ShapePosition != null && ShapePosition.Equals(other.ShapePosition) ) && ( TitleText == other.TitleText || TitleText != null && TitleText.Equals(other.TitleText) )); }