示例#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;
         // Suitable nullity checks etc, of course :)
         if (Date != null)
         {
             hashCode = hashCode * 59 + Date.GetHashCode();
         }
         if (Rehabilitation != null)
         {
             hashCode = hashCode * 59 + Rehabilitation.GetHashCode();
         }
         if (TurnoverRate != null)
         {
             hashCode = hashCode * 59 + TurnoverRate.GetHashCode();
         }
         if (Per != null)
         {
             hashCode = hashCode * 59 + Per.GetHashCode();
         }
         if (Psr != null)
         {
             hashCode = hashCode * 59 + Psr.GetHashCode();
         }
         if (Pcfr != null)
         {
             hashCode = hashCode * 59 + Pcfr.GetHashCode();
         }
         if (Pbr != null)
         {
             hashCode = hashCode * 59 + Pbr.GetHashCode();
         }
         if (Stopped != null)
         {
             hashCode = hashCode * 59 + Stopped.GetHashCode();
         }
         if (SpecialTreatment != null)
         {
             hashCode = hashCode * 59 + SpecialTreatment.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#2
0
 /// <summary>
 ///     Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked            // Overflow is fine, just wrap
     {
         int hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Date != null)
         {
             hashCode = hashCode * 59 + Date.GetHashCode();
         }
         if (Rehabilitation != null)
         {
             hashCode = hashCode * 59 + Rehabilitation.GetHashCode();
         }
         if (TurnoverRate != null)
         {
             hashCode = hashCode * 59 + TurnoverRate.GetHashCode();
         }
         return(hashCode);
     }
 }