Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (MaskedPan.Length != 0)
            {
                hash ^= MaskedPan.GetHashCode();
            }
            if (expirationDate_ != null)
            {
                hash ^= ExpirationDate.GetHashCode();
            }
            if (CardHolderName.Length != 0)
            {
                hash ^= CardHolderName.GetHashCode();
            }
            if (Brand != 0)
            {
                hash ^= Brand.GetHashCode();
            }
            if (IsVirtualCard != false)
            {
                hash ^= IsVirtualCard.GetHashCode();
            }
            if (virtualCardUnusedBalance_ != null)
            {
                hash ^= VirtualCardUnusedBalance.GetHashCode();
            }
            if (virtualCardAvailableOn_ != null)
            {
                hash ^= VirtualCardAvailableOn.GetHashCode();
            }
            if (virtualCardExpiresOn_ != null)
            {
                hash ^= VirtualCardExpiresOn.GetHashCode();
            }
            if (CardType != 0)
            {
                hash ^= CardType.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CardNumber.Length != 0)
            {
                hash ^= CardNumber.GetHashCode();
            }
            if (Cvc.Length != 0)
            {
                hash ^= Cvc.GetHashCode();
            }
            if (ExpiryMonth != 0)
            {
                hash ^= ExpiryMonth.GetHashCode();
            }
            if (FourDigitExpiryYear != 0)
            {
                hash ^= FourDigitExpiryYear.GetHashCode();
            }
            if (Zipcode.Length != 0)
            {
                hash ^= Zipcode.GetHashCode();
            }
            if (CardholderName.Length != 0)
            {
                hash ^= CardholderName.GetHashCode();
            }
            if (IsVirtualCard != false)
            {
                hash ^= IsVirtualCard.GetHashCode();
            }
            if (virtualCardLimit_ != null)
            {
                hash ^= VirtualCardLimit.GetHashCode();
            }
            if (virtualCardAvailableOn_ != null)
            {
                hash ^= VirtualCardAvailableOn.GetHashCode();
            }
            if (virtualCardExpiresOn_ != null)
            {
                hash ^= VirtualCardExpiresOn.GetHashCode();
            }
            return(hash);
        }