Ejemplo n.º 1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Item != null)
         {
             hashCode = hashCode * 59 + Item.GetHashCode();
         }
         if (Axis != null)
         {
             hashCode = hashCode * 59 + Axis.GetHashCode();
         }
         if (Label != null)
         {
             hashCode = hashCode * 59 + Label.GetHashCode();
         }
         if (Chart != null)
         {
             hashCode = hashCode * 59 + Chart.GetHashCode();
         }
         if (Legend != null)
         {
             hashCode = hashCode * 59 + Legend.GetHashCode();
         }
         if (Fill != null)
         {
             hashCode = hashCode * 59 + Fill.GetHashCode();
         }
         if (LineColor != null)
         {
             hashCode = hashCode * 59 + LineColor.GetHashCode();
         }
         if (LineWidth != null)
         {
             hashCode = hashCode * 59 + LineWidth.GetHashCode();
         }
         if (LineStyle != null)
         {
             hashCode = hashCode * 59 + LineStyle.GetHashCode();
         }
         if (MarkerColor != null)
         {
             hashCode = hashCode * 59 + MarkerColor.GetHashCode();
         }
         if (MarkerSymbol != null)
         {
             hashCode = hashCode * 59 + MarkerSymbol.GetHashCode();
         }
         if (RepeatTime != null)
         {
             hashCode = hashCode * 59 + RepeatTime.GetHashCode();
         }
         return(hashCode);
     }
 }