コード例 #1
0
ファイル: SaveDataStructs.cs プロジェクト: CaitSith2/libhac
        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
        }
コード例 #2
0
ファイル: SaveDataStruct.cs プロジェクト: roblabla/LibHac
 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
     }
 }