Exemple #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         if (BgColor != null)
         {
             hashCode = hashCode * 59 + BgColor.GetHashCode();
         }
         if (Camera != null)
         {
             hashCode = hashCode * 59 + Camera.GetHashCode();
         }
         if (Domain != null)
         {
             hashCode = hashCode * 59 + Domain.GetHashCode();
         }
         if (AspectMode != null)
         {
             hashCode = hashCode * 59 + AspectMode.GetHashCode();
         }
         if (AspectRatio != null)
         {
             hashCode = hashCode * 59 + AspectRatio.GetHashCode();
         }
         if (XAxis != null)
         {
             hashCode = hashCode * 59 + XAxis.GetHashCode();
         }
         if (YAxis != null)
         {
             hashCode = hashCode * 59 + YAxis.GetHashCode();
         }
         if (ZAxis != null)
         {
             hashCode = hashCode * 59 + ZAxis.GetHashCode();
         }
         if (DragMode != null)
         {
             hashCode = hashCode * 59 + DragMode.GetHashCode();
         }
         if (HoverMode != null)
         {
             hashCode = hashCode * 59 + HoverMode.GetHashCode();
         }
         if (UiRevision != null)
         {
             hashCode = hashCode * 59 + UiRevision.GetHashCode();
         }
         if (Annotations != null)
         {
             hashCode = hashCode * 59 + Annotations.GetHashCode();
         }
         return(hashCode);
     }
 }