Exemple #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Consumer != null)
         {
             hashCode = hashCode * 59 + Consumer.GetHashCode();
         }
         if (Store != null)
         {
             hashCode = hashCode * 59 + Store.GetHashCode();
         }
         if (Subtotal != null)
         {
             hashCode = hashCode * 59 + Subtotal.GetHashCode();
         }
         if (Tax != null)
         {
             hashCode = hashCode * 59 + Tax.GetHashCode();
         }
         if (EstimatedPickupTime != null)
         {
             hashCode = hashCode * 59 + EstimatedPickupTime.GetHashCode();
         }
         if (IsPickup != null)
         {
             hashCode = hashCode * 59 + IsPickup.GetHashCode();
         }
         if (Categories != null)
         {
             hashCode = hashCode * 59 + Categories.GetHashCode();
         }
         if (IsTaxRemittedByDoordash != null)
         {
             hashCode = hashCode * 59 + IsTaxRemittedByDoordash.GetHashCode();
         }
         if (TaxAmountRemittedByDoordash != null)
         {
             hashCode = hashCode * 59 + TaxAmountRemittedByDoordash.GetHashCode();
         }
         if (CommissionType != null)
         {
             hashCode = hashCode * 59 + CommissionType.GetHashCode();
         }
         if (DeliveryShortCode != null)
         {
             hashCode = hashCode * 59 + DeliveryShortCode.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (IataId.Length != 0)
            {
                hash ^= IataId.GetHashCode();
            }
            if (CommissionType != 0)
            {
                hash ^= CommissionType.GetHashCode();
            }
            if (commissionAmount_ != null)
            {
                hash ^= CommissionAmount.GetHashCode();
            }
            if (commissionPercentage_ != null)
            {
                hash ^= CommissionPercentage.GetHashCode();
            }
            if (GivenName.Length != 0)
            {
                hash ^= GivenName.GetHashCode();
            }
            if (FamilyName.Length != 0)
            {
                hash ^= FamilyName.GetHashCode();
            }
            if (BusinessAddress1.Length != 0)
            {
                hash ^= BusinessAddress1.GetHashCode();
            }
            if (BusinessAddress2.Length != 0)
            {
                hash ^= BusinessAddress2.GetHashCode();
            }
            if (BusinessCity.Length != 0)
            {
                hash ^= BusinessCity.GetHashCode();
            }
            if (BusinessState.Length != 0)
            {
                hash ^= BusinessState.GetHashCode();
            }
            if (BusinessZip.Length != 0)
            {
                hash ^= BusinessZip.GetHashCode();
            }
            if (BusinessNation.Length != 0)
            {
                hash ^= BusinessNation.GetHashCode();
            }
            if (BusinessPhoneNumber.Length != 0)
            {
                hash ^= BusinessPhoneNumber.GetHashCode();
            }
            if (BusinessFaxNumber.Length != 0)
            {
                hash ^= BusinessFaxNumber.GetHashCode();
            }
            if (BusinessEmailAddress.Length != 0)
            {
                hash ^= BusinessEmailAddress.GetHashCode();
            }
            return(hash);
        }