コード例 #1
0
ファイル: BeanNpc.cs プロジェクト: linxscc/LoveGame
        public override int GetHashCode()
        {
            int hash = 1;

            if (NpcId != 0)
            {
                hash ^= NpcId.GetHashCode();
            }
            if (NpcName.Length != 0)
            {
                hash ^= NpcName.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: BeanUserMsgorcall.cs プロジェクト: linxscc/LoveGame
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (SceneId != 0)
            {
                hash ^= SceneId.GetHashCode();
            }
            if (NpcId != 0)
            {
                hash ^= NpcId.GetHashCode();
            }
            hash ^= selectIds_.GetHashCode();
            if (ReadState != 0)
            {
                hash ^= ReadState.GetHashCode();
            }
            if (CreateTime != 0L)
            {
                hash ^= CreateTime.GetHashCode();
            }
            hash ^= listenIds_.GetHashCode();
            if (FinishTime != 0L)
            {
                hash ^= FinishTime.GetHashCode();
            }
            if (TipState != 0)
            {
                hash ^= TipState.GetHashCode();
            }
            return(hash);
        }