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

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (UserName.Length != 0)
            {
                hash ^= UserName.GetHashCode();
            }
            if (UserHead != 0)
            {
                hash ^= UserHead.GetHashCode();
            }
            if (LastLoginTime != 0L)
            {
                hash ^= LastLoginTime.GetHashCode();
            }
            if (CardNum != 0)
            {
                hash ^= CardNum.GetHashCode();
            }
            if (DepartmentLevel != 0)
            {
                hash ^= DepartmentLevel.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
파일: DB2CS.g.cs 프로젝트: niuniuzhu/KOW
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ukey != 0)
            {
                hash ^= Ukey.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Avatar.Length != 0)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (LastLoginTime != 0L)
            {
                hash ^= LastLoginTime.GetHashCode();
            }
            if (Rank != 0)
            {
                hash ^= Rank.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }