Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (m_ObjPropertyCollection != null ? m_ObjPropertyCollection.GetHashCode() : 0);
         result = (result * 397) ^ (CharacterSet != null ? CharacterSet.GetHashCode() : 0);
         result = (result * 397) ^ (ContentEncoding != null ? ContentEncoding.GetHashCode() : 0);
         result = (result * 397) ^ (ContentType != null ? ContentType.GetHashCode() : 0);
         result = (result * 397) ^ (Headers != null ? Headers.GetHashCode() : 0);
         result = (result * 397) ^ IsFromCache.GetHashCode();
         result = (result * 397) ^ IsMutuallyAuthenticated.GetHashCode();
         result = (result * 397) ^ LastModified.GetHashCode();
         result = (result * 397) ^ (Method != null ? Method.GetHashCode() : 0);
         result = (result * 397) ^ (OriginalReferrerUrl != null ? OriginalReferrerUrl.GetHashCode() : 0);
         result = (result * 397) ^ (OriginalUrl != null ? OriginalUrl.GetHashCode() : 0);
         result = (result * 397) ^ (ProtocolVersion != null ? ProtocolVersion.GetHashCode() : 0);
         result = (result * 397) ^ (Referrer != null ? Referrer.GetHashCode() : 0);
         result = (result * 397) ^ (ResponseUri != null ? ResponseUri.GetHashCode() : 0);
         result = (result * 397) ^ (Server != null ? Server.GetHashCode() : 0);
         result = (result * 397) ^ StatusCode.GetHashCode();
         result = (result * 397) ^ (StatusDescription != null ? StatusDescription.GetHashCode() : 0);
         result = (result * 397) ^ (Step != null ? Step.GetHashCode() : 0);
         result = (result * 397) ^ (Text != null ? Text.GetHashCode() : 0);
         result = (result * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         result = (result * 397) ^ DownloadTime.GetHashCode();
         return(result);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     if (OriginalUrl != null)
     {
         return(OriginalUrl.GetHashCode());
     }
     if (LargeUrl != null)
     {
         return(LargeUrl.GetHashCode());
     }
     if (ThumbnailUrl != null)
     {
         return(ThumbnailUrl.GetHashCode());
     }
     return(base.GetHashCode());
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasTitle)
            {
                hash ^= Title.GetHashCode();
            }
            if (HasType)
            {
                hash ^= Type.GetHashCode();
            }
            if (HasOriginalUrl)
            {
                hash ^= OriginalUrl.GetHashCode();
            }
            if (HasThumbnail)
            {
                hash ^= Thumbnail.GetHashCode();
            }
            if (HasProvider)
            {
                hash ^= Provider.GetHashCode();
            }
            if (HasDescription)
            {
                hash ^= Description.GetHashCode();
            }
            if (HasFavicon)
            {
                hash ^= Favicon.GetHashCode();
            }
            if (HasHtml)
            {
                hash ^= Html.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }