Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ShopType != 0)
            {
                hash ^= ShopType.GetHashCode();
            }
            if (PageNumber != 0)
            {
                hash ^= PageNumber.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
 public static int DefinitionKey(int chapterId, ShopType type)
 {
     return(chapterId * 10 + type.GetHashCode());
 }