Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TotalSpent.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalReceived.GetHashCode();
         hashCode = (hashCode * 397) ^ Balance.GetHashCode();
         hashCode = (hashCode * 397) ^ Txi;
         hashCode = (hashCode * 397) ^ Txo;
         hashCode = (hashCode * 397) ^ TxsCount;
         hashCode = (hashCode * 397) ^ (Legacy != null ? Legacy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addresses != null ? Addresses.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = AvatarUrl != null?AvatarUrl.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Billing != null ? Billing.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Id;
                hashCode = (hashCode * 397) ^ IsPayingCustomer.GetHashCode();
                hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ OrdersCount;
                hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Role != null ? Role.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Shipping != null ? Shipping.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (TotalSpent != null ? TotalSpent.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
                return(hashCode);
            }
        }