Exemplo n.º 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 (BorderColor != null)
         {
             hashCode = hashCode * 59 + BorderColor.GetHashCode();
         }
         if (BorderWidth != null)
         {
             hashCode = hashCode * 59 + BorderWidth.GetHashCode();
         }
         if (Font != null)
         {
             hashCode = hashCode * 59 + Font.GetHashCode();
         }
         if (Orientation != null)
         {
             hashCode = hashCode * 59 + Orientation.GetHashCode();
         }
         if (TraceOrder != null)
         {
             hashCode = hashCode * 59 + TraceOrder.GetHashCode();
         }
         if (TraceGroupGap != null)
         {
             hashCode = hashCode * 59 + TraceGroupGap.GetHashCode();
         }
         if (ItemSizing != null)
         {
             hashCode = hashCode * 59 + ItemSizing.GetHashCode();
         }
         if (ItemWidth != null)
         {
             hashCode = hashCode * 59 + ItemWidth.GetHashCode();
         }
         if (ItemClick != null)
         {
             hashCode = hashCode * 59 + ItemClick.GetHashCode();
         }
         if (ItemDoubleClick != null)
         {
             hashCode = hashCode * 59 + ItemDoubleClick.GetHashCode();
         }
         if (X != null)
         {
             hashCode = hashCode * 59 + X.GetHashCode();
         }
         if (XAnchor != null)
         {
             hashCode = hashCode * 59 + XAnchor.GetHashCode();
         }
         if (Y != null)
         {
             hashCode = hashCode * 59 + Y.GetHashCode();
         }
         if (YAnchor != null)
         {
             hashCode = hashCode * 59 + YAnchor.GetHashCode();
         }
         if (UiRevision != null)
         {
             hashCode = hashCode * 59 + UiRevision.GetHashCode();
         }
         if (VAlign != null)
         {
             hashCode = hashCode * 59 + VAlign.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         return(hashCode);
     }
 }