Exemplo 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 (Uri != null)
         {
             hashCode = hashCode * 59 + Uri.GetHashCode();
         }
         if (ChartId != null)
         {
             hashCode = hashCode * 59 + ChartId.GetHashCode();
         }
         if (ServiceId != null)
         {
             hashCode = hashCode * 59 + ServiceId.GetHashCode();
         }
         if (ItemId != null)
         {
             hashCode = hashCode * 59 + ItemId.GetHashCode();
         }
         if (BarWidth != null)
         {
             hashCode = hashCode * 59 + BarWidth.GetHashCode();
         }
         if (BorderWidth != null)
         {
             hashCode = hashCode * 59 + BorderWidth.GetHashCode();
         }
         if (Angle != null)
         {
             hashCode = hashCode * 59 + Angle.GetHashCode();
         }
         if (Rotate != null)
         {
             hashCode = hashCode * 59 + Rotate.GetHashCode();
         }
         if (BarAngle != null)
         {
             hashCode = hashCode * 59 + BarAngle.GetHashCode();
         }
         if (LineCap != null)
         {
             hashCode = hashCode * 59 + LineCap.GetHashCode();
         }
         if (ScaleMin != null)
         {
             hashCode = hashCode * 59 + ScaleMin.GetHashCode();
         }
         if (ScaleMax != null)
         {
             hashCode = hashCode * 59 + ScaleMax.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Units != null)
         {
             hashCode = hashCode * 59 + Units.GetHashCode();
         }
         if (Group != null)
         {
             hashCode = hashCode * 59 + Group.GetHashCode();
         }
         if (FloorplanId != null)
         {
             hashCode = hashCode * 59 + FloorplanId.GetHashCode();
         }
         return(hashCode);
     }
 }