Exemplo 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 (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         hashCode = hashCode * 59 + Conformance.GetHashCode();
         hashCode = hashCode * 59 + AllowVectorization.GetHashCode();
         hashCode = hashCode * 59 + AllowRasterization.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
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);
     }
 }
Exemplo n.º 3
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 (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         hashCode = hashCode * 59 + Conformance.GetHashCode();
         hashCode = hashCode * 59 + ColorImageCompression.GetHashCode();
         hashCode = hashCode * 59 + BitonalImageCompression.GetHashCode();
         hashCode = hashCode * 59 + EnableColorDetection.GetHashCode();
         hashCode = hashCode * 59 + ImageQuality.GetHashCode();
         hashCode = hashCode * 59 + DownscaleResolution.GetHashCode();
         hashCode = hashCode * 59 + FastWebView.GetHashCode();
         return(hashCode);
     }
 }