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