Exemple #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 (Costs != null)
         {
             hashCode = hashCode * 59 + Costs.GetHashCode();
         }
         if (Distance != null)
         {
             hashCode = hashCode * 59 + Distance.GetHashCode();
         }
         if (Time != null)
         {
             hashCode = hashCode * 59 + Time.GetHashCode();
         }
         if (TransportTime != null)
         {
             hashCode = hashCode * 59 + TransportTime.GetHashCode();
         }
         if (MaxOperationTime != null)
         {
             hashCode = hashCode * 59 + MaxOperationTime.GetHashCode();
         }
         if (WaitingTime != null)
         {
             hashCode = hashCode * 59 + WaitingTime.GetHashCode();
         }
         if (NoVehicles != null)
         {
             hashCode = hashCode * 59 + NoVehicles.GetHashCode();
         }
         if (NoUnassigned != null)
         {
             hashCode = hashCode * 59 + NoUnassigned.GetHashCode();
         }
         if (Routes != null)
         {
             hashCode = hashCode * 59 + Routes.GetHashCode();
         }
         if (Unassigned != null)
         {
             hashCode = hashCode * 59 + Unassigned.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (LocationId != null)
         {
             hashCode = hashCode * 59 + LocationId.GetHashCode();
         }
         if (ArrTime != null)
         {
             hashCode = hashCode * 59 + ArrTime.GetHashCode();
         }
         if (EndTime != null)
         {
             hashCode = hashCode * 59 + EndTime.GetHashCode();
         }
         if (WaitingTime != null)
         {
             hashCode = hashCode * 59 + WaitingTime.GetHashCode();
         }
         if (Distance != null)
         {
             hashCode = hashCode * 59 + Distance.GetHashCode();
         }
         if (DrivingTime != null)
         {
             hashCode = hashCode * 59 + DrivingTime.GetHashCode();
         }
         if (LoadBefore != null)
         {
             hashCode = hashCode * 59 + LoadBefore.GetHashCode();
         }
         if (LoadAfter != null)
         {
             hashCode = hashCode * 59 + LoadAfter.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (VehicleId != null)
         {
             hashCode = hashCode * 59 + VehicleId.GetHashCode();
         }
         if (Distance != null)
         {
             hashCode = hashCode * 59 + Distance.GetHashCode();
         }
         if (TransportTime != null)
         {
             hashCode = hashCode * 59 + TransportTime.GetHashCode();
         }
         if (CompletionTime != null)
         {
             hashCode = hashCode * 59 + CompletionTime.GetHashCode();
         }
         if (WaitingTime != null)
         {
             hashCode = hashCode * 59 + WaitingTime.GetHashCode();
         }
         if (Activities != null)
         {
             hashCode = hashCode * 59 + Activities.GetHashCode();
         }
         if (Points != null)
         {
             hashCode = hashCode * 59 + Points.GetHashCode();
         }
         return(hashCode);
     }
 }