/// <summary> /// Returns true if LoadDocumentParameters instances are equal /// </summary> /// <param name="input">Instance of LoadDocumentParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(LoadDocumentParameters input) { if (input == null) { return(false); } return (( FileName == input.FileName || (FileName != null && FileName.Equals(input.FileName)) ) && ( ContentEncoding == input.ContentEncoding || ContentEncoding.Equals(input.ContentEncoding) ) && ( GetPreview == input.GetPreview || GetPreview.Equals(input.GetPreview) ) && ( ThumbnailWidth == input.ThumbnailWidth || ThumbnailWidth.Equals(input.ThumbnailWidth) ) && ( ThumbnailHeight == input.ThumbnailHeight || ThumbnailHeight.Equals(input.ThumbnailHeight) ) && ( ThumbnailBackgroundColor == input.ThumbnailBackgroundColor || (ThumbnailBackgroundColor != null && ThumbnailBackgroundColor.Equals(input.ThumbnailBackgroundColor)) ) && ( ThumbnailFitToPageSize == input.ThumbnailFitToPageSize || ThumbnailFitToPageSize.Equals(input.ThumbnailFitToPageSize) )); }
/// <summary> /// Returns true if PdfLoadDocumentParameters instances are equal /// </summary> /// <param name="input">Instance of PdfLoadDocumentParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfLoadDocumentParameters input) { if (input == null) { return(false); } return (( FileName == input.FileName || (FileName != null && FileName.Equals(input.FileName)) ) && ( Password == input.Password || (Password != null && Password.Equals(input.Password)) ) && ( Conformance == input.Conformance || Conformance.Equals(input.Conformance) ) && ( ContentEncoding == input.ContentEncoding || ContentEncoding.Equals(input.ContentEncoding) ) && ( EnableColorDetection == input.EnableColorDetection || EnableColorDetection.Equals(input.EnableColorDetection) ) && ( GetPreview == input.GetPreview || GetPreview.Equals(input.GetPreview) ) && ( ThumbnailWidth == input.ThumbnailWidth || ThumbnailWidth.Equals(input.ThumbnailWidth) ) && ( ThumbnailHeight == input.ThumbnailHeight || ThumbnailHeight.Equals(input.ThumbnailHeight) ) && ( ThumbnailBackgroundColor == input.ThumbnailBackgroundColor || (ThumbnailBackgroundColor != null && ThumbnailBackgroundColor.Equals(input.ThumbnailBackgroundColor)) ) && ( ThumbnailFitToPageSize == input.ThumbnailFitToPageSize || ThumbnailFitToPageSize.Equals(input.ThumbnailFitToPageSize) ) && ( TxtPageWidth == input.TxtPageWidth || TxtPageWidth.Equals(input.TxtPageWidth) ) && ( TxtPageHeight == input.TxtPageHeight || TxtPageHeight.Equals(input.TxtPageHeight) ) && ( TxtPageMarginLeft == input.TxtPageMarginLeft || TxtPageMarginLeft.Equals(input.TxtPageMarginLeft) ) && ( TxtPageMarginTop == input.TxtPageMarginTop || TxtPageMarginTop.Equals(input.TxtPageMarginTop) ) && ( TxtPageMarginRight == input.TxtPageMarginRight || TxtPageMarginRight.Equals(input.TxtPageMarginRight) ) && ( TxtPageMarginBottom == input.TxtPageMarginBottom || TxtPageMarginBottom.Equals(input.TxtPageMarginBottom) ) && ( TxtHorizontalTextAlignment == input.TxtHorizontalTextAlignment || TxtHorizontalTextAlignment.Equals(input.TxtHorizontalTextAlignment) ) && ( TxtFontSize == input.TxtFontSize || TxtFontSize.Equals(input.TxtFontSize) ) && ( TxtFontFamily == input.TxtFontFamily || (TxtFontFamily != null && TxtFontFamily.Equals(input.TxtFontFamily)) ) && ( TxtFontBold == input.TxtFontBold || TxtFontBold.Equals(input.TxtFontBold) ) && ( TxtFontItalic == input.TxtFontItalic || TxtFontItalic.Equals(input.TxtFontItalic) )); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } var other = (MessageProperties)obj; if (AppId == null) { if (other.AppId != null) { return(false); } } else if (!AppId.Equals(other.AppId)) { return(false); } if (ClusterId == null) { if (other.ClusterId != null) { return(false); } } else if (!ClusterId.Equals(other.ClusterId)) { return(false); } if (ContentEncoding == null) { if (other.ContentEncoding != null) { return(false); } } else if (!ContentEncoding.Equals(other.ContentEncoding)) { return(false); } if (ContentLength != other.ContentLength) { return(false); } if (ContentType == null) { if (other.ContentType != null) { return(false); } } else if (!ContentType.Equals(other.ContentType)) { return(false); } if (CorrelationId == null) { if (other.CorrelationId != null) { return(false); } } else if (!CorrelationId.Equals(other.CorrelationId)) { return(false); } if (DeliveryMode != other.DeliveryMode) { return(false); } if (DeliveryTag != other.DeliveryTag) { return(false); } if (Expiration == null) { if (other.Expiration != null) { return(false); } } else if (!Expiration.Equals(other.Expiration)) { return(false); } if (!Headers.Equals(other.Headers)) { return(false); } if (MessageCount == null) { if (other.MessageCount != null) { return(false); } } else if (!MessageCount.Equals(other.MessageCount)) { return(false); } if (MessageId == null) { if (other.MessageId != null) { return(false); } } else if (!MessageId.Equals(other.MessageId)) { return(false); } if (Priority == null) { if (other.Priority != null) { return(false); } } else if (!Priority.Equals(other.Priority)) { return(false); } if (ReceivedExchange == null) { if (other.ReceivedExchange != null) { return(false); } } else if (!ReceivedExchange.Equals(other.ReceivedExchange)) { return(false); } if (ReceivedRoutingKey == null) { if (other.ReceivedRoutingKey != null) { return(false); } } else if (!ReceivedRoutingKey.Equals(other.ReceivedRoutingKey)) { return(false); } if (Redelivered == null) { if (other.Redelivered != null) { return(false); } } else if (!Redelivered.Equals(other.Redelivered)) { return(false); } if (ReplyTo == null) { if (other.ReplyTo != null) { return(false); } } else if (!ReplyTo.Equals(other.ReplyTo)) { return(false); } if (Timestamp == null) { if (other.Timestamp != null) { return(false); } } else if (!Timestamp.Equals(other.Timestamp)) { return(false); } if (Type == null) { if (other.Type != null) { return(false); } } else if (!Type.Equals(other.Type)) { return(false); } if (UserId == null) { if (other.UserId != null) { return(false); } } else if (!UserId.Equals(other.UserId)) { return(false); } return(true); }