예제 #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (CqDamConfigAnnotationPdfDocumentWidth != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfDocumentWidth.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfDocumentHeight != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfDocumentHeight.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfDocumentPaddingHorizontal != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfDocumentPaddingHorizontal.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfDocumentPaddingVertical != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfDocumentPaddingVertical.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfFontSize != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfFontSize.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfFontColor != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfFontColor.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfFontFamily != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfFontFamily.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfFontLight != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfFontLight.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfMarginTextImage != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfMarginTextImage.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfMinImageHeight != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfMinImageHeight.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfReviewStatusWidth != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfReviewStatusWidth.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfReviewStatusColorApproved != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfReviewStatusColorApproved.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfReviewStatusColorRejected != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfReviewStatusColorRejected.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfReviewStatusColorChangesRequested != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfReviewStatusColorChangesRequested.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfAnnotationMarkerWidth != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfAnnotationMarkerWidth.GetHashCode();
         }
         if (CqDamConfigAnnotationPdfAssetMinheight != null)
         {
             hashCode = hashCode * 59 + CqDamConfigAnnotationPdfAssetMinheight.GetHashCode();
         }
         return(hashCode);
     }
 }