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); }
public static int DefinitionKey(int chapterId, ShopType type) { return(chapterId * 10 + type.GetHashCode()); }