Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FromUser.Length != 0)
            {
                hash ^= FromUser.GetHashCode();
            }
            if (TargetUser.Length != 0)
            {
                hash ^= TargetUser.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (SendTime != 0)
            {
                hash ^= SendTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Category != 0)
            {
                hash ^= Category.GetHashCode();
            }
            if (FromUser.Length != 0)
            {
                hash ^= FromUser.GetHashCode();
            }
            if (ToUser.Length != 0)
            {
                hash ^= ToUser.GetHashCode();
            }
            hash ^= actionList_.GetHashCode();
            hash ^= messageList_.GetHashCode();
            return(hash);
        }