Beispiel #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Class != null)
         {
             hashCode = hashCode * 59 + Class.GetHashCode();
         }
         if (Actions != null)
         {
             hashCode = hashCode * 59 + Actions.GetHashCode();
         }
         if (Blocked != null)
         {
             hashCode = hashCode * 59 + Blocked.GetHashCode();
         }
         if (Buildable != null)
         {
             hashCode = hashCode * 59 + Buildable.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (InQueueSince != null)
         {
             hashCode = hashCode * 59 + InQueueSince.GetHashCode();
         }
         if (Params != null)
         {
             hashCode = hashCode * 59 + Params.GetHashCode();
         }
         if (Stuck != null)
         {
             hashCode = hashCode * 59 + Stuck.GetHashCode();
         }
         if (Task != null)
         {
             hashCode = hashCode * 59 + Task.GetHashCode();
         }
         if (Url != null)
         {
             hashCode = hashCode * 59 + Url.GetHashCode();
         }
         if (Why != null)
         {
             hashCode = hashCode * 59 + Why.GetHashCode();
         }
         if (BuildableStartMilliseconds != null)
         {
             hashCode = hashCode * 59 + BuildableStartMilliseconds.GetHashCode();
         }
         return(hashCode);
     }
 }