Beispiel #1
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);
        }