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

            if (FromUserID.Length != 0)
            {
                hash ^= FromUserID.GetHashCode();
            }
            if (ToUserID.Length != 0)
            {
                hash ^= ToUserID.GetHashCode();
            }
            if (UserType != 0)
            {
                hash ^= UserType.GetHashCode();
            }
            if (FileName.Length != 0)
            {
                hash ^= FileName.GetHashCode();
            }
            if (Data.Length != 0)
            {
                hash ^= Data.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FromUserID.Length != 0)
            {
                hash ^= FromUserID.GetHashCode();
            }
            if (ToUserID.Length != 0)
            {
                hash ^= ToUserID.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }