예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Query.Length != 0)
            {
                hash ^= Query.GetHashCode();
            }
            if (PageNumber != 0)
            {
                hash ^= PageNumber.GetHashCode();
            }
            if (ResultPerPage != 0)
            {
                hash ^= ResultPerPage.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId.Length != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (PageNumber != 0)
            {
                hash ^= PageNumber.GetHashCode();
            }
            if (PerPage != 0)
            {
                hash ^= PerPage.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasGclid)
            {
                hash ^= Gclid.GetHashCode();
            }
            if (areaOfInterest_ != null)
            {
                hash ^= AreaOfInterest.GetHashCode();
            }
            if (locationOfPresence_ != null)
            {
                hash ^= LocationOfPresence.GetHashCode();
            }
            if (HasPageNumber)
            {
                hash ^= PageNumber.GetHashCode();
            }
            if (HasAdGroupAd)
            {
                hash ^= AdGroupAd.GetHashCode();
            }
            if (HasCampaignLocationTarget)
            {
                hash ^= CampaignLocationTarget.GetHashCode();
            }
            if (HasUserList)
            {
                hash ^= UserList.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #4
0
 public override int GetHashCode()
 {
     return(PageSize.GetHashCode() ^ PageNumber.GetHashCode());
 }
예제 #5
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (CertificateData != null)
         {
             hashCode = hashCode * 59 + CertificateData.GetHashCode();
         }
         if (CertificatePassword != null)
         {
             hashCode = hashCode * 59 + CertificatePassword.GetHashCode();
         }
         hashCode = hashCode * 59 + SignatureMode.GetHashCode();
         hashCode = hashCode * 59 + SignatureCertificationLevel.GetHashCode();
         hashCode = hashCode * 59 + SignatureHashAlgorithm.GetHashCode();
         if (SignerName != null)
         {
             hashCode = hashCode * 59 + SignerName.GetHashCode();
         }
         if (Reason != null)
         {
             hashCode = hashCode * 59 + Reason.GetHashCode();
         }
         if (Location != null)
         {
             hashCode = hashCode * 59 + Location.GetHashCode();
         }
         if (ContactInfo != null)
         {
             hashCode = hashCode * 59 + ContactInfo.GetHashCode();
         }
         if (TimeStampURL != null)
         {
             hashCode = hashCode * 59 + TimeStampURL.GetHashCode();
         }
         if (TimeStampUserName != null)
         {
             hashCode = hashCode * 59 + TimeStampUserName.GetHashCode();
         }
         if (TimeStampPassword != null)
         {
             hashCode = hashCode * 59 + TimeStampPassword.GetHashCode();
         }
         hashCode = hashCode * 59 + Linearize.GetHashCode();
         hashCode = hashCode * 59 + DrawSignature.GetHashCode();
         hashCode = hashCode * 59 + PageNumber.GetHashCode();
         hashCode = hashCode * 59 + ShowValidationMark.GetHashCode();
         if (ImageData != null)
         {
             hashCode = hashCode * 59 + ImageData.GetHashCode();
         }
         if (SignatureLayout != null)
         {
             hashCode = hashCode * 59 + SignatureLayout.GetHashCode();
         }
         if (SignatureText != null)
         {
             hashCode = hashCode * 59 + SignatureText.GetHashCode();
         }
         return(hashCode);
     }
 }