Beispiel #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);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Returns true if ComDayCqDamCoreImplAnnotationPdfAnnotationPdfConfigProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqDamCoreImplAnnotationPdfAnnotationPdfConfigProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqDamCoreImplAnnotationPdfAnnotationPdfConfigProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CqDamConfigAnnotationPdfDocumentWidth == other.CqDamConfigAnnotationPdfDocumentWidth ||
                     CqDamConfigAnnotationPdfDocumentWidth != null &&
                     CqDamConfigAnnotationPdfDocumentWidth.Equals(other.CqDamConfigAnnotationPdfDocumentWidth)
                     ) &&
                 (
                     CqDamConfigAnnotationPdfDocumentHeight == other.CqDamConfigAnnotationPdfDocumentHeight ||
                     CqDamConfigAnnotationPdfDocumentHeight != null &&
                     CqDamConfigAnnotationPdfDocumentHeight.Equals(other.CqDamConfigAnnotationPdfDocumentHeight)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfDocumentPaddingHorizontal == other.CqDamConfigAnnotationPdfDocumentPaddingHorizontal ||
                     CqDamConfigAnnotationPdfDocumentPaddingHorizontal != null &&
                     CqDamConfigAnnotationPdfDocumentPaddingHorizontal.Equals(other.CqDamConfigAnnotationPdfDocumentPaddingHorizontal)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfDocumentPaddingVertical == other.CqDamConfigAnnotationPdfDocumentPaddingVertical ||
                     CqDamConfigAnnotationPdfDocumentPaddingVertical != null &&
                     CqDamConfigAnnotationPdfDocumentPaddingVertical.Equals(other.CqDamConfigAnnotationPdfDocumentPaddingVertical)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfFontSize == other.CqDamConfigAnnotationPdfFontSize ||
                     CqDamConfigAnnotationPdfFontSize != null &&
                     CqDamConfigAnnotationPdfFontSize.Equals(other.CqDamConfigAnnotationPdfFontSize)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfFontColor == other.CqDamConfigAnnotationPdfFontColor ||
                     CqDamConfigAnnotationPdfFontColor != null &&
                     CqDamConfigAnnotationPdfFontColor.Equals(other.CqDamConfigAnnotationPdfFontColor)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfFontFamily == other.CqDamConfigAnnotationPdfFontFamily ||
                     CqDamConfigAnnotationPdfFontFamily != null &&
                     CqDamConfigAnnotationPdfFontFamily.Equals(other.CqDamConfigAnnotationPdfFontFamily)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfFontLight == other.CqDamConfigAnnotationPdfFontLight ||
                     CqDamConfigAnnotationPdfFontLight != null &&
                     CqDamConfigAnnotationPdfFontLight.Equals(other.CqDamConfigAnnotationPdfFontLight)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfMarginTextImage == other.CqDamConfigAnnotationPdfMarginTextImage ||
                     CqDamConfigAnnotationPdfMarginTextImage != null &&
                     CqDamConfigAnnotationPdfMarginTextImage.Equals(other.CqDamConfigAnnotationPdfMarginTextImage)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfMinImageHeight == other.CqDamConfigAnnotationPdfMinImageHeight ||
                     CqDamConfigAnnotationPdfMinImageHeight != null &&
                     CqDamConfigAnnotationPdfMinImageHeight.Equals(other.CqDamConfigAnnotationPdfMinImageHeight)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfReviewStatusWidth == other.CqDamConfigAnnotationPdfReviewStatusWidth ||
                     CqDamConfigAnnotationPdfReviewStatusWidth != null &&
                     CqDamConfigAnnotationPdfReviewStatusWidth.Equals(other.CqDamConfigAnnotationPdfReviewStatusWidth)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfReviewStatusColorApproved == other.CqDamConfigAnnotationPdfReviewStatusColorApproved ||
                     CqDamConfigAnnotationPdfReviewStatusColorApproved != null &&
                     CqDamConfigAnnotationPdfReviewStatusColorApproved.Equals(other.CqDamConfigAnnotationPdfReviewStatusColorApproved)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfReviewStatusColorRejected == other.CqDamConfigAnnotationPdfReviewStatusColorRejected ||
                     CqDamConfigAnnotationPdfReviewStatusColorRejected != null &&
                     CqDamConfigAnnotationPdfReviewStatusColorRejected.Equals(other.CqDamConfigAnnotationPdfReviewStatusColorRejected)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfReviewStatusColorChangesRequested == other.CqDamConfigAnnotationPdfReviewStatusColorChangesRequested ||
                     CqDamConfigAnnotationPdfReviewStatusColorChangesRequested != null &&
                     CqDamConfigAnnotationPdfReviewStatusColorChangesRequested.Equals(other.CqDamConfigAnnotationPdfReviewStatusColorChangesRequested)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfAnnotationMarkerWidth == other.CqDamConfigAnnotationPdfAnnotationMarkerWidth ||
                     CqDamConfigAnnotationPdfAnnotationMarkerWidth != null &&
                     CqDamConfigAnnotationPdfAnnotationMarkerWidth.Equals(other.CqDamConfigAnnotationPdfAnnotationMarkerWidth)
                 ) &&
                 (
                     CqDamConfigAnnotationPdfAssetMinheight == other.CqDamConfigAnnotationPdfAssetMinheight ||
                     CqDamConfigAnnotationPdfAssetMinheight != null &&
                     CqDamConfigAnnotationPdfAssetMinheight.Equals(other.CqDamConfigAnnotationPdfAssetMinheight)
                 ));
        }