Exemplo n.º 1
0
 public override int GetHashCode()
 {
     int hashCode = 1962522138;
     hashCode = hashCode * -1521134295 + OrderNum.GetHashCode();
     hashCode = hashCode * -1521134295 + EqualityComparer<Client>.Default.GetHashCode(Client);
     hashCode = hashCode * -1521134295 + EqualityComparer<OrderDetails[]>.Default.GetHashCode(OrderList);
     hashCode = hashCode * -1521134295 + Sum.GetHashCode();
     return hashCode;
 }
Exemplo n.º 2
0
            public override int GetHashCode()
            {
                var hashCode = -227992339;

                hashCode = hashCode * -1521134295 + OrderNum.GetHashCode();
                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Address);

                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Customer);

                hashCode = hashCode * -1521134295 + TotalPrice.GetHashCode();
                hashCode = hashCode * -1521134295 + EqualityComparer <List <OrderItem> > .Default.GetHashCode(itemList);

                return(hashCode);
            }