Example #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 (IsRecurring != null)
         {
             hashCode = hashCode * 59 + IsRecurring.GetHashCode();
         }
         if (Locale != null)
         {
             hashCode = hashCode * 59 + Locale.GetHashCode();
         }
         if (PaymentProductFilters != null)
         {
             hashCode = hashCode * 59 + PaymentProductFilters.GetHashCode();
         }
         if (ReturnCancelState != null)
         {
             hashCode = hashCode * 59 + ReturnCancelState.GetHashCode();
         }
         if (ReturnUrl != null)
         {
             hashCode = hashCode * 59 + ReturnUrl.GetHashCode();
         }
         if (ShowResultPage != null)
         {
             hashCode = hashCode * 59 + ShowResultPage.GetHashCode();
         }
         if (Tokens != null)
         {
             hashCode = hashCode * 59 + Tokens.GetHashCode();
         }
         if (ValidateShoppingCart != null)
         {
             hashCode = hashCode * 59 + ValidateShoppingCart.GetHashCode();
         }
         if (Variant != null)
         {
             hashCode = hashCode * 59 + Variant.GetHashCode();
         }
         return(hashCode);
     }
 }