/// <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 (PayeeUType != null)
         {
             hashCode = hashCode * 59 + PayeeUType.GetHashCode();
         }
         if (Domestic != null)
         {
             hashCode = hashCode * 59 + Domestic.GetHashCode();
         }
         if (Biller != null)
         {
             hashCode = hashCode * 59 + Biller.GetHashCode();
         }
         if (International != null)
         {
             hashCode = hashCode * 59 + International.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #2
0
파일: FxPair.cs 프로젝트: mpvyard/qwack
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Foreign.GetHashCode();
         result = (result * 397) ^ Domestic.GetHashCode();
         result = (result * 397) ^ SettlementCalendar.GetHashCode();
         result = (result * 397) ^ SpotLag.GetHashCode();
         return(result);
     }
 }