コード例 #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 + OutputVersion.GetHashCode();
         hashCode = hashCode * 59 + ImageQuality.GetHashCode();
         hashCode = hashCode * 59 + RecompressImages.GetHashCode();
         hashCode = hashCode * 59 + EnableColorDetection.GetHashCode();
         hashCode = hashCode * 59 + PackDocument.GetHashCode();
         hashCode = hashCode * 59 + PackFonts.GetHashCode();
         hashCode = hashCode * 59 + DownscaleImages.GetHashCode();
         hashCode = hashCode * 59 + DownscaleResolution.GetHashCode();
         hashCode = hashCode * 59 + FastWebView.GetHashCode();
         hashCode = hashCode * 59 + RemoveFormFields.GetHashCode();
         hashCode = hashCode * 59 + RemoveAnnotations.GetHashCode();
         hashCode = hashCode * 59 + RemoveBookmarks.GetHashCode();
         hashCode = hashCode * 59 + RemoveHyperlinks.GetHashCode();
         hashCode = hashCode * 59 + RemoveEmbeddedFiles.GetHashCode();
         hashCode = hashCode * 59 + RemoveBlankPages.GetHashCode();
         hashCode = hashCode * 59 + RemoveJavaScript.GetHashCode();
         hashCode = hashCode * 59 + EnableJPEG2000.GetHashCode();
         hashCode = hashCode * 59 + EnableJBIG2.GetHashCode();
         hashCode = hashCode * 59 + EnableCharRepair.GetHashCode();
         hashCode = hashCode * 59 + EnableMRC.GetHashCode();
         hashCode = hashCode * 59 + PreserveSmoothing.GetHashCode();
         hashCode = hashCode * 59 + DownscaleResolutionMRC.GetHashCode();
         hashCode = hashCode * 59 + RemoveMetadata.GetHashCode();
         hashCode = hashCode * 59 + RemovePageThumbnails.GetHashCode();
         hashCode = hashCode * 59 + RemovePagePieceInfo.GetHashCode();
         hashCode = hashCode * 59 + JBIG2PMSThreshold.GetHashCode();
         return(hashCode);
     }
 }
コード例 #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 (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);
     }
 }