Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 23 + (Item1 == null ? 0 : Item1.GetHashCode());
         hash = hash * 23 + (Item2 == null ? 0 : Item2.GetHashCode());
         hash = hash * 23 + (Item3 == null ? 0 : Item3.GetHashCode());
         hash = hash * 23 + (Item4 == null ? 0 : Item4.GetHashCode());
         hash = hash * 23 + (Item5 == null ? 0 : Item5.GetHashCode());
         hash = hash * 23 + (Item6 == null ? 0 : Item6.GetHashCode());
         hash = hash * 23 + (Item7 == null ? 0 : Item7.GetHashCode());
         hash = hash * 23 + (Item8 == null ? 0 : Item8.GetHashCode());
         return(hash);
     }
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemSetId != 0UL)
            {
                hash ^= ItemSetId.GetHashCode();
            }
            if (Item1 != 0L)
            {
                hash ^= Item1.GetHashCode();
            }
            if (Item1Quantity != 0)
            {
                hash ^= Item1Quantity.GetHashCode();
            }
            if (Item2 != 0L)
            {
                hash ^= Item2.GetHashCode();
            }
            if (Item2Quantity != 0)
            {
                hash ^= Item2Quantity.GetHashCode();
            }
            if (Item3 != 0L)
            {
                hash ^= Item3.GetHashCode();
            }
            if (Item3Quantity != 0)
            {
                hash ^= Item3Quantity.GetHashCode();
            }
            if (Item4 != 0L)
            {
                hash ^= Item4.GetHashCode();
            }
            if (Item4Quantity != 0)
            {
                hash ^= Item4Quantity.GetHashCode();
            }
            if (Item5 != 0L)
            {
                hash ^= Item5.GetHashCode();
            }
            if (Item5Quantity != 0)
            {
                hash ^= Item5Quantity.GetHashCode();
            }
            if (Item6 != 0L)
            {
                hash ^= Item6.GetHashCode();
            }
            if (Item6Quantity != 0)
            {
                hash ^= Item6Quantity.GetHashCode();
            }
            if (Item7 != 0L)
            {
                hash ^= Item7.GetHashCode();
            }
            if (Item7Quantity != 0)
            {
                hash ^= Item7Quantity.GetHashCode();
            }
            if (Item8 != 0L)
            {
                hash ^= Item8.GetHashCode();
            }
            if (Item8Quantity != 0)
            {
                hash ^= Item8Quantity.GetHashCode();
            }
            if (Item9 != 0L)
            {
                hash ^= Item9.GetHashCode();
            }
            if (Item9Quantity != 0)
            {
                hash ^= Item9Quantity.GetHashCode();
            }
            if (Item10 != 0L)
            {
                hash ^= Item10.GetHashCode();
            }
            if (Item10Quantity != 0)
            {
                hash ^= Item10Quantity.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }