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

            if (CpeUri.Length != 0)
            {
                hash ^= CpeUri.GetHashCode();
            }
            if (Architecture != 0)
            {
                hash ^= Architecture.GetHashCode();
            }
            if (latestVersion_ != null)
            {
                hash ^= LatestVersion.GetHashCode();
            }
            if (Maintainer.Length != 0)
            {
                hash ^= Maintainer.GetHashCode();
            }
            if (Url.Length != 0)
            {
                hash ^= Url.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CpeUri.Length != 0)
            {
                hash ^= CpeUri.GetHashCode();
            }
            if (version_ != null)
            {
                hash ^= Version.GetHashCode();
            }
            if (Path.Length != 0)
            {
                hash ^= Path.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }