示例#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);
        }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((LatestVersion?.GetHashCode() ?? 0) * 397) ^ (Versions?.GetHashCode() ?? 0));
     }
 }