예제 #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         if (Visible != null)
         {
             hashCode = hashCode * 59 + Visible.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Symmetric != null)
         {
             hashCode = hashCode * 59 + Symmetric.GetHashCode();
         }
         if (Array != null)
         {
             hashCode = hashCode * 59 + Array.GetHashCode();
         }
         if (ArrayMinus != null)
         {
             hashCode = hashCode * 59 + ArrayMinus.GetHashCode();
         }
         if (Value != null)
         {
             hashCode = hashCode * 59 + Value.GetHashCode();
         }
         if (ValueMinus != null)
         {
             hashCode = hashCode * 59 + ValueMinus.GetHashCode();
         }
         if (TraceRef != null)
         {
             hashCode = hashCode * 59 + TraceRef.GetHashCode();
         }
         if (TraceRefMinus != null)
         {
             hashCode = hashCode * 59 + TraceRefMinus.GetHashCode();
         }
         if (Color != null)
         {
             hashCode = hashCode * 59 + Color.GetHashCode();
         }
         if (Thickness != null)
         {
             hashCode = hashCode * 59 + Thickness.GetHashCode();
         }
         if (Width != null)
         {
             hashCode = hashCode * 59 + Width.GetHashCode();
         }
         if (ArraySrc != null)
         {
             hashCode = hashCode * 59 + ArraySrc.GetHashCode();
         }
         if (ArrayMinusSrc != null)
         {
             hashCode = hashCode * 59 + ArrayMinusSrc.GetHashCode();
         }
         return(hashCode);
     }
 }