Пример #1
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);
     }
 }