/// <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 (AmountOfMoney != null) { hashCode = hashCode * 59 + AmountOfMoney.GetHashCode(); } if (InvoiceData != null) { hashCode = hashCode * 59 + InvoiceData.GetHashCode(); } if (Level3InterchangeInformation != null) { hashCode = hashCode * 59 + Level3InterchangeInformation.GetHashCode(); } if (OrderLineDetails != null) { hashCode = hashCode * 59 + OrderLineDetails.GetHashCode(); } return(hashCode); } }
/// <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 (AmountOfMoney != null) { hashCode = hashCode * 59 + AmountOfMoney.GetHashCode(); } if (References != null) { hashCode = hashCode * 59 + References.GetHashCode(); } return(hashCode); } }
/// <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 (AdditionalInput != null) { hashCode = hashCode * 59 + AdditionalInput.GetHashCode(); } if (AmountOfMoney != null) { hashCode = hashCode * 59 + AmountOfMoney.GetHashCode(); } if (Customer != null) { hashCode = hashCode * 59 + Customer.GetHashCode(); } if (Items != null) { hashCode = hashCode * 59 + Items.GetHashCode(); } if (References != null) { hashCode = hashCode * 59 + References.GetHashCode(); } if (Seller != null) { hashCode = hashCode * 59 + Seller.GetHashCode(); } if (ShoppingCart != null) { hashCode = hashCode * 59 + ShoppingCart.GetHashCode(); } return(hashCode); } }