Example #1
0
        /// <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)
                 ));
        }