Exemplo n.º 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 (Returnmac != null)
         {
             hashCode = hashCode * 59 + Returnmac.GetHashCode();
         }
         if (HostedCheckoutId != null)
         {
             hashCode = hashCode * 59 + HostedCheckoutId.GetHashCode();
         }
         if (InvalidTokens != null)
         {
             hashCode = hashCode * 59 + InvalidTokens.GetHashCode();
         }
         if (MerchantReference != null)
         {
             hashCode = hashCode * 59 + MerchantReference.GetHashCode();
         }
         if (PartialRedirectUrl != null)
         {
             hashCode = hashCode * 59 + PartialRedirectUrl.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
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 (HostedCheckoutId != null)
         {
             hashCode = hashCode * 59 + HostedCheckoutId.GetHashCode();
         }
         if (Variant != null)
         {
             hashCode = hashCode * 59 + Variant.GetHashCode();
         }
         return(hashCode);
     }
 }