Esempio n. 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 (Content != null)
         {
             hashCode = hashCode * 59 + Content.GetHashCode();
         }
         if (FileName != null)
         {
             hashCode = hashCode * 59 + FileName.GetHashCode();
         }
         if (Password != null)
         {
             hashCode = hashCode * 59 + Password.GetHashCode();
         }
         hashCode = hashCode * 59 + Conformance.GetHashCode();
         hashCode = hashCode * 59 + ContentEncoding.GetHashCode();
         hashCode = hashCode * 59 + EnableColorDetection.GetHashCode();
         hashCode = hashCode * 59 + GetPreview.GetHashCode();
         hashCode = hashCode * 59 + ThumbnailWidth.GetHashCode();
         hashCode = hashCode * 59 + ThumbnailHeight.GetHashCode();
         if (ThumbnailBackgroundColor != null)
         {
             hashCode = hashCode * 59 + ThumbnailBackgroundColor.GetHashCode();
         }
         hashCode = hashCode * 59 + ThumbnailFitToPageSize.GetHashCode();
         hashCode = hashCode * 59 + TxtPageWidth.GetHashCode();
         hashCode = hashCode * 59 + TxtPageHeight.GetHashCode();
         hashCode = hashCode * 59 + TxtPageMarginLeft.GetHashCode();
         hashCode = hashCode * 59 + TxtPageMarginTop.GetHashCode();
         hashCode = hashCode * 59 + TxtPageMarginRight.GetHashCode();
         hashCode = hashCode * 59 + TxtPageMarginBottom.GetHashCode();
         hashCode = hashCode * 59 + TxtHorizontalTextAlignment.GetHashCode();
         hashCode = hashCode * 59 + TxtFontSize.GetHashCode();
         if (TxtFontFamily != null)
         {
             hashCode = hashCode * 59 + TxtFontFamily.GetHashCode();
         }
         hashCode = hashCode * 59 + TxtFontBold.GetHashCode();
         hashCode = hashCode * 59 + TxtFontItalic.GetHashCode();
         return(hashCode);
     }
 }