예제 #1
0
        public override int GetHashCode()
        {
            int hashCode = 1634732298;

            hashCode = hashCode * -1521134295 + EqualityComparer <Client> .Default.GetHashCode(Purchaser);

            hashCode = hashCode * -1521134295 + OrderID.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <OrderDetail> > .Default.GetHashCode(Details);

            return(hashCode);
        }
예제 #2
0
        public override int GetHashCode()
        {
            var hashCode = -1758130255;

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

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

            return(hashCode);
        }
예제 #3
0
            public override int GetHashCode()
            {
                int hashcode = 0;

                unchecked {
                    hashcode = (hashcode * 397) ^ (!__isset.OrderID ? 0 : (OrderID.GetHashCode()));
                    hashcode = (hashcode * 397) ^ (!__isset.DishID ? 0 : (DishID.GetHashCode()));
                    hashcode = (hashcode * 397) ^ (!__isset.Quantity ? 0 : (Quantity.GetHashCode()));
                    hashcode = (hashcode * 397) ^ (!__isset.BakerID ? 0 : (BakerID.GetHashCode()));
                }
                return(hashcode);
            }
예제 #4
0
        public override int GetHashCode()
        {
            int hashCode = 813372120;

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

            hashCode = hashCode * -1521134295 + Sum.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <OrderDetails> > .Default.GetHashCode(details);

            return(hashCode);
        }
예제 #5
0
 public override int GetHashCode()
 {
     if (OrderID == 0)
     {
         return(base.GetHashCode());              //transient instance
     }
     if (ProductID == 0)
     {
         return(base.GetHashCode());                //transient instance
     }
     return(OrderID.GetHashCode() ^ ProductID.GetHashCode());
 }
예제 #6
0
        public override int GetHashCode()
        {
            int hashCode = -1537382045;

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

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

            hashCode = hashCode * -1521134295 + price.GetHashCode();
            return(hashCode);
        }
예제 #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17 + this.OrderID;
         hash = hash * 23 + OrderID.GetHashCode();
         hash = hash * 23 + Email.GetHashCode();
         hash = hash * 23 + ShoppingCart.GetHashCode();
         hash = hash * 23 + TimeStamp.GetHashCode();
         hash = hash * 23 + this.ToString().GetHashCode();
         return(hash);
     }
 }
예제 #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OrderID.Length != 0)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (Exists != false)
            {
                hash ^= Exists.GetHashCode();
            }
            return(hash);
        }
예제 #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OrderID.Length != 0)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (Accepted != false)
            {
                hash ^= Accepted.GetHashCode();
            }
            return(hash);
        }
예제 #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OrderID.Length != 0)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (UserID.Length != 0)
            {
                hash ^= UserID.GetHashCode();
            }
            return(hash);
        }
예제 #11
0
        public override int GetHashCode()
        {
            var hashCode = -236961719;

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

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

            return(hashCode);
        }
예제 #12
0
        public override int GetHashCode()
        {
            var hashCode = -227992339;

            hashCode = hashCode * -1521134295 + OrderID.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(OrderItems);

            return(hashCode);
        }
예제 #13
0
        public override int GetHashCode()
        {
            var hashCode = 84649274;

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

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

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

            hashCode = hashCode * -1521134295 + ShipVia.GetHashCode();
            hashCode = hashCode * -1521134295 + Freight.GetHashCode();
            return(hashCode);
        }
예제 #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (packetID_ != null)
            {
                hash ^= PacketID.GetHashCode();
            }
            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (OrderID != 0UL)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (ModifyOrderOp != 0)
            {
                hash ^= ModifyOrderOp.GetHashCode();
            }
            if (ForAll != false)
            {
                hash ^= ForAll.GetHashCode();
            }
            if (Qty != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Qty);
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (AdjustPrice != false)
            {
                hash ^= AdjustPrice.GetHashCode();
            }
            if (AdjustSideAndLimit != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AdjustSideAndLimit);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #15
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (OrderID != null)
         {
             hashCode = hashCode * 59 + OrderID.GetHashCode();
         }
         if (Message != null)
         {
             hashCode = hashCode * 59 + Message.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OrderID.Length != 0)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (Canceled != false)
            {
                hash ^= Canceled.GetHashCode();
            }
            if (ConfirmationCode.Length != 0)
            {
                hash ^= ConfirmationCode.GetHashCode();
            }
            return(hash);
        }
예제 #17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (OrderType != 0)
            {
                hash ^= OrderType.GetHashCode();
            }
            if (Code.Length != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (OrderID != 0UL)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (AdjustPrice != false)
            {
                hash ^= AdjustPrice.GetHashCode();
            }
            if (AdjustSideAndLimit != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AdjustSideAndLimit);
            }
            if (SecMarket != 0)
            {
                hash ^= SecMarket.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #18
0
 public override int GetHashCode()
 {
     return(OrderID.GetHashCode());
 }
예제 #19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OrderID != 0)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (CustomerID.Length != 0)
            {
                hash ^= CustomerID.GetHashCode();
            }
            if (EmployeeID != 0)
            {
                hash ^= EmployeeID.GetHashCode();
            }
            if (orderDate_ != null)
            {
                hash ^= OrderDate.GetHashCode();
            }
            if (requiredDate_ != null)
            {
                hash ^= RequiredDate.GetHashCode();
            }
            if (shippedDate_ != null)
            {
                hash ^= ShippedDate.GetHashCode();
            }
            if (ShipVia != 0)
            {
                hash ^= ShipVia.GetHashCode();
            }
            if (Freight != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Freight);
            }
            if (ShipName.Length != 0)
            {
                hash ^= ShipName.GetHashCode();
            }
            if (ShipAddress.Length != 0)
            {
                hash ^= ShipAddress.GetHashCode();
            }
            if (ShipCity.Length != 0)
            {
                hash ^= ShipCity.GetHashCode();
            }
            if (ShipRegion.Length != 0)
            {
                hash ^= ShipRegion.GetHashCode();
            }
            if (ShipPostalCode.Length != 0)
            {
                hash ^= ShipPostalCode.GetHashCode();
            }
            if (ShipCountry.Length != 0)
            {
                hash ^= ShipCountry.GetHashCode();
            }
            hash ^= lines_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #20
0
 public override int GetHashCode() => OrderID.GetHashCode();
예제 #21
0
파일: Orders.cs 프로젝트: leeleonis/QD
        public override int GetHashCode()
        {
            int hashOrderID = OrderID.GetHashCode();

            return(hashOrderID);
        }
예제 #22
0
 public override int GetHashCode()
 {
     return(1651275338 + OrderID.GetHashCode());
 }