Exemple #1
0
        public override int GetHashCode()
        {
            int hashCode = -555412222;

            if (Context != null)
            {
                hashCode += Context.GetHashCode();
            }

            if (Invoices != null)
            {
                hashCode += Invoices.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            if (Errors != null)
            {
                hashCode += Errors.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);
        }