示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (CustomerId != null ? CustomerId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ EmployeeId;
         hashCode = (hashCode * 397) ^ OrderDate.GetHashCode();
         hashCode = (hashCode * 397) ^ RequiredDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ShipVia.GetHashCode();
         hashCode = (hashCode * 397) ^ Freight.GetHashCode();
         hashCode = (hashCode * 397) ^ (ShipName != null ? ShipName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipAddress != null ? ShipAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipCity != null ? ShipCity.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipRegion != null ? ShipRegion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipPostalCode != null ? ShipPostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipCountry != null ? ShipCountry.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (Customer != null ? Customer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Employee != null ? Employee.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OrderDate.GetHashCode();
         hashCode = (hashCode * 397) ^ RequiredDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ShipVia.GetHashCode();
         hashCode = (hashCode * 397) ^ Freight.GetHashCode();
         hashCode = (hashCode * 397) ^ (ShipName != null ? ShipName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipAddress != null ? ShipAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipCity != null ? ShipCity.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipRegion != null ? ShipRegion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipPostalCode != null ? ShipPostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShipCountry != null ? ShipCountry.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OrderDetails != null ? OrderDetails.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntIds != null ? IntIds.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CharMap != null ? CharMap.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#3
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);
        }