Beispiel #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);
        }
Beispiel #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);
        }