Example #1
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Type != null)
                {
                    hashCode = hashCode * 59 + Type.GetHashCode();
                }

                if (Visible != null)
                {
                    hashCode = hashCode * 59 + Visible.GetHashCode();
                }

                if (Name != null)
                {
                    hashCode = hashCode * 59 + Name.GetHashCode();
                }

                if (UId != null)
                {
                    hashCode = hashCode * 59 + UId.GetHashCode();
                }

                if (Ids != null)
                {
                    hashCode = hashCode * 59 + Ids.GetHashCode();
                }

                if (CustomData != null)
                {
                    hashCode = hashCode * 59 + CustomData.GetHashCode();
                }

                if (Meta != null)
                {
                    hashCode = hashCode * 59 + Meta.GetHashCode();
                }

                if (MetaArray != null)
                {
                    hashCode = hashCode * 59 + MetaArray.GetHashCode();
                }

                if (Stream != null)
                {
                    hashCode = hashCode * 59 + Stream.GetHashCode();
                }

                if (Transforms != null)
                {
                    hashCode = hashCode * 59 + Transforms.GetHashCode();
                }

                if (UiRevision != null)
                {
                    hashCode = hashCode * 59 + UiRevision.GetHashCode();
                }

                if (Domain != null)
                {
                    hashCode = hashCode * 59 + Domain.GetHashCode();
                }

                if (LabelAngle != null)
                {
                    hashCode = hashCode * 59 + LabelAngle.GetHashCode();
                }

                if (LabelSide != null)
                {
                    hashCode = hashCode * 59 + LabelSide.GetHashCode();
                }

                if (LabelFont != null)
                {
                    hashCode = hashCode * 59 + LabelFont.GetHashCode();
                }

                if (TickFont != null)
                {
                    hashCode = hashCode * 59 + TickFont.GetHashCode();
                }

                if (RangeFont != null)
                {
                    hashCode = hashCode * 59 + RangeFont.GetHashCode();
                }

                if (Dimensions != null)
                {
                    hashCode = hashCode * 59 + Dimensions.GetHashCode();
                }

                if (Line != null)
                {
                    hashCode = hashCode * 59 + Line.GetHashCode();
                }

                if (IdsSrc != null)
                {
                    hashCode = hashCode * 59 + IdsSrc.GetHashCode();
                }

                if (CustomDataSrc != null)
                {
                    hashCode = hashCode * 59 + CustomDataSrc.GetHashCode();
                }

                if (MetaSrc != null)
                {
                    hashCode = hashCode * 59 + MetaSrc.GetHashCode();
                }

                return(hashCode);
            }
        }
Example #2
0
        public bool Equals([AllowNull] ParCoords other)
        {
            if (other == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((Type == other.Type && Type != null && other.Type != null && Type.Equals(other.Type)) &&
                   (Visible == other.Visible && Visible != null && other.Visible != null && Visible.Equals(other.Visible)) &&
                   (Name == other.Name && Name != null && other.Name != null && Name.Equals(other.Name)) &&
                   (UId == other.UId && UId != null && other.UId != null && UId.Equals(other.UId)) &&
                   (Equals(Ids, other.Ids) || Ids != null && other.Ids != null && Ids.SequenceEqual(other.Ids)) &&
                   (Equals(CustomData, other.CustomData) || CustomData != null && other.CustomData != null && CustomData.SequenceEqual(other.CustomData)) &&
                   (Meta == other.Meta && Meta != null && other.Meta != null && Meta.Equals(other.Meta)) &&
                   (Equals(MetaArray, other.MetaArray) || MetaArray != null && other.MetaArray != null && MetaArray.SequenceEqual(other.MetaArray)) &&
                   (Stream == other.Stream && Stream != null && other.Stream != null && Stream.Equals(other.Stream)) &&
                   (Equals(Transforms, other.Transforms) || Transforms != null && other.Transforms != null && Transforms.SequenceEqual(other.Transforms)) &&
                   (UiRevision == other.UiRevision && UiRevision != null && other.UiRevision != null && UiRevision.Equals(other.UiRevision)) &&
                   (Domain == other.Domain && Domain != null && other.Domain != null && Domain.Equals(other.Domain)) &&
                   (LabelAngle == other.LabelAngle && LabelAngle != null && other.LabelAngle != null && LabelAngle.Equals(other.LabelAngle)) &&
                   (LabelSide == other.LabelSide && LabelSide != null && other.LabelSide != null && LabelSide.Equals(other.LabelSide)) &&
                   (LabelFont == other.LabelFont && LabelFont != null && other.LabelFont != null && LabelFont.Equals(other.LabelFont)) &&
                   (TickFont == other.TickFont && TickFont != null && other.TickFont != null && TickFont.Equals(other.TickFont)) &&
                   (RangeFont == other.RangeFont && RangeFont != null && other.RangeFont != null && RangeFont.Equals(other.RangeFont)) &&
                   (Equals(Dimensions, other.Dimensions) || Dimensions != null && other.Dimensions != null && Dimensions.SequenceEqual(other.Dimensions)) &&
                   (Line == other.Line && Line != null && other.Line != null && Line.Equals(other.Line)) &&
                   (IdsSrc == other.IdsSrc && IdsSrc != null && other.IdsSrc != null && IdsSrc.Equals(other.IdsSrc)) &&
                   (CustomDataSrc == other.CustomDataSrc && CustomDataSrc != null && other.CustomDataSrc != null && CustomDataSrc.Equals(other.CustomDataSrc)) &&
                   (MetaSrc == other.MetaSrc && MetaSrc != null && other.MetaSrc != null && MetaSrc.Equals(other.MetaSrc)));
        }
Example #3
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Visible != null)
         {
             hashCode = hashCode * 59 + Visible.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (UId != null)
         {
             hashCode = hashCode * 59 + UId.GetHashCode();
         }
         if (Meta != null)
         {
             hashCode = hashCode * 59 + Meta.GetHashCode();
         }
         if (MetaArray != null)
         {
             hashCode = hashCode * 59 + MetaArray.GetHashCode();
         }
         if (Stream != null)
         {
             hashCode = hashCode * 59 + Stream.GetHashCode();
         }
         if (Transforms != null)
         {
             hashCode = hashCode * 59 + Transforms.GetHashCode();
         }
         if (UiRevision != null)
         {
             hashCode = hashCode * 59 + UiRevision.GetHashCode();
         }
         if (Domain != null)
         {
             hashCode = hashCode * 59 + Domain.GetHashCode();
         }
         if (HoverInfo != null)
         {
             hashCode = hashCode * 59 + HoverInfo.GetHashCode();
         }
         if (HoverOn != null)
         {
             hashCode = hashCode * 59 + HoverOn.GetHashCode();
         }
         if (HoverTemplate != null)
         {
             hashCode = hashCode * 59 + HoverTemplate.GetHashCode();
         }
         if (Arrangement != null)
         {
             hashCode = hashCode * 59 + Arrangement.GetHashCode();
         }
         if (BundleColors != null)
         {
             hashCode = hashCode * 59 + BundleColors.GetHashCode();
         }
         if (SortPaths != null)
         {
             hashCode = hashCode * 59 + SortPaths.GetHashCode();
         }
         if (LabelFont != null)
         {
             hashCode = hashCode * 59 + LabelFont.GetHashCode();
         }
         if (TickFont != null)
         {
             hashCode = hashCode * 59 + TickFont.GetHashCode();
         }
         if (Dimensions != null)
         {
             hashCode = hashCode * 59 + Dimensions.GetHashCode();
         }
         if (Line != null)
         {
             hashCode = hashCode * 59 + Line.GetHashCode();
         }
         if (Counts != null)
         {
             hashCode = hashCode * 59 + Counts.GetHashCode();
         }
         if (CountsArray != null)
         {
             hashCode = hashCode * 59 + CountsArray.GetHashCode();
         }
         if (MetaSrc != null)
         {
             hashCode = hashCode * 59 + MetaSrc.GetHashCode();
         }
         if (CountsSrc != null)
         {
             hashCode = hashCode * 59 + CountsSrc.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #4
0
        /// <inheritdoc />
        public bool Equals([AllowNull] ParCats other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                     ) &&
                 (
                     Visible == other.Visible ||
                     Visible != null &&
                     Visible.Equals(other.Visible)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     UId == other.UId ||
                     UId != null &&
                     UId.Equals(other.UId)
                 ) &&
                 (
                     Meta == other.Meta ||
                     Meta != null &&
                     Meta.Equals(other.Meta)
                 ) &&
                 (
                     Equals(MetaArray, other.MetaArray) ||
                     MetaArray != null && other.MetaArray != null &&
                     MetaArray.SequenceEqual(other.MetaArray)
                 ) &&
                 (
                     Stream == other.Stream ||
                     Stream != null &&
                     Stream.Equals(other.Stream)
                 ) &&
                 (
                     Equals(Transforms, other.Transforms) ||
                     Transforms != null && other.Transforms != null &&
                     Transforms.SequenceEqual(other.Transforms)
                 ) &&
                 (
                     UiRevision == other.UiRevision ||
                     UiRevision != null &&
                     UiRevision.Equals(other.UiRevision)
                 ) &&
                 (
                     Domain == other.Domain ||
                     Domain != null &&
                     Domain.Equals(other.Domain)
                 ) &&
                 (
                     HoverInfo == other.HoverInfo ||
                     HoverInfo != null &&
                     HoverInfo.Equals(other.HoverInfo)
                 ) &&
                 (
                     HoverOn == other.HoverOn ||
                     HoverOn != null &&
                     HoverOn.Equals(other.HoverOn)
                 ) &&
                 (
                     HoverTemplate == other.HoverTemplate ||
                     HoverTemplate != null &&
                     HoverTemplate.Equals(other.HoverTemplate)
                 ) &&
                 (
                     Arrangement == other.Arrangement ||
                     Arrangement != null &&
                     Arrangement.Equals(other.Arrangement)
                 ) &&
                 (
                     BundleColors == other.BundleColors ||
                     BundleColors != null &&
                     BundleColors.Equals(other.BundleColors)
                 ) &&
                 (
                     SortPaths == other.SortPaths ||
                     SortPaths != null &&
                     SortPaths.Equals(other.SortPaths)
                 ) &&
                 (
                     LabelFont == other.LabelFont ||
                     LabelFont != null &&
                     LabelFont.Equals(other.LabelFont)
                 ) &&
                 (
                     TickFont == other.TickFont ||
                     TickFont != null &&
                     TickFont.Equals(other.TickFont)
                 ) &&
                 (
                     Equals(Dimensions, other.Dimensions) ||
                     Dimensions != null && other.Dimensions != null &&
                     Dimensions.SequenceEqual(other.Dimensions)
                 ) &&
                 (
                     Line == other.Line ||
                     Line != null &&
                     Line.Equals(other.Line)
                 ) &&
                 (
                     Counts == other.Counts ||
                     Counts != null &&
                     Counts.Equals(other.Counts)
                 ) &&
                 (
                     Equals(CountsArray, other.CountsArray) ||
                     CountsArray != null && other.CountsArray != null &&
                     CountsArray.SequenceEqual(other.CountsArray)
                 ) &&
                 (
                     MetaSrc == other.MetaSrc ||
                     MetaSrc != null &&
                     MetaSrc.Equals(other.MetaSrc)
                 ) &&
                 (
                     CountsSrc == other.CountsSrc ||
                     CountsSrc != null &&
                     CountsSrc.Equals(other.CountsSrc)
                 ));
        }
Example #5
0
        /// <inheritdoc />
        public bool Equals([AllowNull] Contours other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                     ) &&
                 (
                     Start == other.Start ||
                     Start != null &&
                     Start.Equals(other.Start)
                 ) &&
                 (
                     End == other.End ||
                     End != null &&
                     End.Equals(other.End)
                 ) &&
                 (
                     Size == other.Size ||
                     Size != null &&
                     Size.Equals(other.Size)
                 ) &&
                 (
                     Coloring == other.Coloring ||
                     Coloring != null &&
                     Coloring.Equals(other.Coloring)
                 ) &&
                 (
                     ShowLines == other.ShowLines ||
                     ShowLines != null &&
                     ShowLines.Equals(other.ShowLines)
                 ) &&
                 (
                     ShowLabels == other.ShowLabels ||
                     ShowLabels != null &&
                     ShowLabels.Equals(other.ShowLabels)
                 ) &&
                 (
                     LabelFont == other.LabelFont ||
                     LabelFont != null &&
                     LabelFont.Equals(other.LabelFont)
                 ) &&
                 (
                     LabelFormat == other.LabelFormat ||
                     LabelFormat != null &&
                     LabelFormat.Equals(other.LabelFormat)
                 ) &&
                 (
                     Operation == other.Operation ||
                     Operation != null &&
                     Operation.Equals(other.Operation)
                 ) &&
                 (
                     Value == other.Value ||
                     Value != null &&
                     Value.Equals(other.Value)
                 ));
        }
Example #6
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Type != null)
                {
                    hashCode = hashCode * 59 + Type.GetHashCode();
                }

                if (Start != null)
                {
                    hashCode = hashCode * 59 + Start.GetHashCode();
                }

                if (End != null)
                {
                    hashCode = hashCode * 59 + End.GetHashCode();
                }

                if (Size != null)
                {
                    hashCode = hashCode * 59 + Size.GetHashCode();
                }

                if (Coloring != null)
                {
                    hashCode = hashCode * 59 + Coloring.GetHashCode();
                }

                if (ShowLines != null)
                {
                    hashCode = hashCode * 59 + ShowLines.GetHashCode();
                }

                if (ShowLabels != null)
                {
                    hashCode = hashCode * 59 + ShowLabels.GetHashCode();
                }

                if (LabelFont != null)
                {
                    hashCode = hashCode * 59 + LabelFont.GetHashCode();
                }

                if (LabelFormat != null)
                {
                    hashCode = hashCode * 59 + LabelFormat.GetHashCode();
                }

                if (Operation != null)
                {
                    hashCode = hashCode * 59 + Operation.GetHashCode();
                }

                if (Value != null)
                {
                    hashCode = hashCode * 59 + Value.GetHashCode();
                }

                return(hashCode);
            }
        }