Exemple #1
0
 public override int GetHashCode()
 {
     if (OrderNo != null)
     {
         return(OrderNo.GetHashCode() ^ ItemCode.GetHashCode());
     }
     else
     {
         return(base.GetHashCode());
     }
 }
Exemple #2
0
 public override int GetHashCode()
 {
     if (Bom != null && ItemCode != null)
     {
         return(Bom.GetHashCode() ^ ItemCode.GetHashCode());
     }
     else
     {
         return(base.GetHashCode());
     }
 }
Exemple #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemCode.Length != 0)
            {
                hash ^= ItemCode.GetHashCode();
            }
            if (ItemName.Length != 0)
            {
                hash ^= ItemName.GetHashCode();
            }
            if (Spec.Length != 0)
            {
                hash ^= Spec.GetHashCode();
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (Quantity != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Quantity);
            }
            if (Unit.Length != 0)
            {
                hash ^= Unit.GetHashCode();
            }
            if (Cost != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Cost);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #4
0
 public override int GetHashCode()
 {
     return(ItemCode.GetHashCode());
 }