Esempio n. 1
0
        public override int GetHashCode()
        {
            // ReSharper disable NonReadonlyMemberInGetHashCode
            int hashCode = 487790375;

            hashCode = hashCode * -1521134295 + TitleId.GetHashCode();
            hashCode = hashCode * -1521134295 + Type.GetHashCode();
            hashCode = hashCode * -1521134295 + UserId.GetHashCode();
            hashCode = hashCode * -1521134295 + SaveDataId.GetHashCode();
            hashCode = hashCode * -1521134295 + Rank.GetHashCode();
            hashCode = hashCode * -1521134295 + Index.GetHashCode();
            return(hashCode);
            // ReSharper restore NonReadonlyMemberInGetHashCode
        }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         int hashCode = TitleId.GetHashCode();
         hashCode = (hashCode * 397) ^ UserId.GetHashCode();
         hashCode = (hashCode * 397) ^ SaveId.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Type;
         hashCode = (hashCode * 397) ^ Rank.GetHashCode();
         hashCode = (hashCode * 397) ^ Index.GetHashCode();
         return(hashCode);
         // ReSharper restore NonReadonlyMemberInGetHashCode
     }
 }