コード例 #1
0
ファイル: UploadFile.cs プロジェクト: chengjianaaa/gogotalk
        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);
        }
コード例 #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);
        }