示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MsgID != 0)
            {
                hash ^= MsgID.GetHashCode();
            }
            if (Userid != 0)
            {
                hash ^= Userid.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MsgID != 0)
            {
                hash ^= MsgID.GetHashCode();
            }
            if (Userid != 0)
            {
                hash ^= Userid.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }