/// <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 (AuthorisationCode != null) { hashCode = hashCode * 59 + AuthorisationCode.GetHashCode(); } if (FraudResults != null) { hashCode = hashCode * 59 + FraudResults.GetHashCode(); } if (Network != null) { hashCode = hashCode * 59 + Network.GetHashCode(); } if (PaymentData != null) { hashCode = hashCode * 59 + PaymentData.GetHashCode(); } if (ThreeDSecureResults != null) { hashCode = hashCode * 59 + ThreeDSecureResults.GetHashCode(); } return(hashCode); } }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Orders.GetHashCode()); hashCode = hashCode * -1521134295 + (DeliveryNotes.GetHashCode()); hashCode = hashCode * -1521134295 + (CustomsDocuments.GetHashCode()); hashCode = hashCode * -1521134295 + (IntermediaryLogistics.GetHashCode()); hashCode = hashCode * -1521134295 + (Invoices.GetHashCode()); hashCode = hashCode * -1521134295 + (PoDs.GetHashCode()); hashCode = hashCode * -1521134295 + (PaymentData.GetHashCode()); return(hashCode); }