/// <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 + Format.GetHashCode(); if (Layout != null) { hashCode = hashCode * 59 + Layout.GetHashCode(); } if (TextParameters != null) { hashCode = hashCode * 59 + TextParameters.GetHashCode(); } return(hashCode); } }
/// <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 + Font.GetHashCode(); hashCode = hashCode * 59 + Context.GetHashCode(); if (WhiteList != null) { hashCode = hashCode * 59 + WhiteList.GetHashCode(); } hashCode = hashCode * 59 + RoiLeft.GetHashCode(); hashCode = hashCode * 59 + RoiTop.GetHashCode(); hashCode = hashCode * 59 + RoiWidth.GetHashCode(); hashCode = hashCode * 59 + RoiHeight.GetHashCode(); hashCode = hashCode * 59 + ExpectedSymbolsCount.GetHashCode(); return(hashCode); } }
/// <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 + RoiLeft.GetHashCode(); hashCode = hashCode * 59 + RoiTop.GetHashCode(); hashCode = hashCode * 59 + RoiWidth.GetHashCode(); hashCode = hashCode * 59 + RoiHeight.GetHashCode(); hashCode = hashCode * 59 + ScanMode.GetHashCode(); hashCode = hashCode * 59 + ScanBarcode1D.GetHashCode(); hashCode = hashCode * 59 + ScanBarcodeQR.GetHashCode(); hashCode = hashCode * 59 + ScanBarcodeMicroQR.GetHashCode(); hashCode = hashCode * 59 + ScanBarcodePDF417.GetHashCode(); hashCode = hashCode * 59 + ScanBarcodeDataMatrix.GetHashCode(); hashCode = hashCode * 59 + ScanBarcodeAztec.GetHashCode(); return(hashCode); } }
/// <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 + RoiLeft.GetHashCode(); hashCode = hashCode * 59 + RoiTop.GetHashCode(); hashCode = hashCode * 59 + RoiWidth.GetHashCode(); hashCode = hashCode * 59 + RoiHeight.GetHashCode(); hashCode = hashCode * 59 + GammaCorrection.GetHashCode(); hashCode = hashCode * 59 + Brightness.GetHashCode(); hashCode = hashCode * 59 + Contrast.GetHashCode(); hashCode = hashCode * 59 + Saturation.GetHashCode(); hashCode = hashCode * 59 + AutoContrastEnhancement.GetHashCode(); hashCode = hashCode * 59 + ContrastHistogramStretch.GetHashCode(); return(hashCode); } }
/// <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(); } if (ImageData != null) { hashCode = hashCode * 59 + ImageData.GetHashCode(); } if (ImageFileId != null) { hashCode = hashCode * 59 + ImageFileId.GetHashCode(); } hashCode = hashCode * 59 + Quality.GetHashCode(); hashCode = hashCode * 59 + ColorImageCompression.GetHashCode(); hashCode = hashCode * 59 + BitonalCompression.GetHashCode(); return(hashCode); } }
public void Range_Equals() { var r1 = new PageRange(5, 10); var r2 = new PageRange(5, 10); Assert.That(r1, Is.EqualTo(r2)); Assert.True(r1 == r2); Assert.True(Equals(r1, r2)); Assert.That(r1.GetHashCode(), Is.EqualTo(r2.GetHashCode())); }
public void Range_NotEquals() { var r1 = new PageRange(5, 10); var r2 = new PageRange(6, 10); Assert.That(r1, Is.Not.EqualTo(r2)); Assert.True(r1 != r2); Assert.False(Equals(r1, r2)); Assert.False(r1.Equals(null)); Assert.That(r1, Is.Not.EqualTo(null)); // ReSharper disable once SuspiciousTypeConversion.Global Assert.False(r1.Equals(5)); Assert.That(r1.GetHashCode(), Is.Not.EqualTo(r2.GetHashCode())); }
/// <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 + RemoveOnlyHiddenText.GetHashCode(); return(hashCode); } }
/// <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 + ExtractAsSeparate.GetHashCode(); hashCode = hashCode * 59 + ImmediateDownload.GetHashCode(); return(hashCode); } }
/// <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 + Compression.GetHashCode(); hashCode = hashCode * 59 + JpegQuality.GetHashCode(); return(hashCode); } }
/// <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 + MaxAngleOfResearch.GetHashCode(); hashCode = hashCode * 59 + Optimistic.GetHashCode(); return(hashCode); } }
/// <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 + AutoConvert.GetHashCode(); hashCode = hashCode * 59 + AutoRepairCharacters.GetHashCode(); return(hashCode); } }
/// <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 + ThumbnailWidth.GetHashCode(); hashCode = hashCode * 59 + ThumbnailHeight.GetHashCode(); return(hashCode); } }
/// <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 + ScaleX.GetHashCode(); hashCode = hashCode * 59 + ScaleY.GetHashCode(); return(hashCode); } }
/// <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 + RotationAngle.GetHashCode(); hashCode = hashCode * 59 + FlipHorizontally.GetHashCode(); hashCode = hashCode * 59 + FlipVertically.GetHashCode(); return(hashCode); } }
/// <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 + ResizeHorizontal.GetHashCode(); hashCode = hashCode * 59 + ResizeVertical.GetHashCode(); hashCode = hashCode * 59 + ResizeMode.GetHashCode(); hashCode = hashCode * 59 + ResizeUnit.GetHashCode(); return(hashCode); } }
/// <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 + ConvertColorDepthMode.GetHashCode(); hashCode = hashCode * 59 + Depth1BppOtsuThreshold.GetHashCode(); hashCode = hashCode * 59 + Depth1BppBradleyThreshold.GetHashCode(); hashCode = hashCode * 59 + Depth1BppSauvolaFactor.GetHashCode(); return(hashCode); } }
/// <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 + AnnotationType.GetHashCode(); if (StickyNoteAnnotationParameters != null) { hashCode = hashCode * 59 + StickyNoteAnnotationParameters.GetHashCode(); } if (LinkAnnotationParameters != null) { hashCode = hashCode * 59 + LinkAnnotationParameters.GetHashCode(); } if (FreeTextAnnotationParameters != null) { hashCode = hashCode * 59 + FreeTextAnnotationParameters.GetHashCode(); } if (LineAnnotationParameters != null) { hashCode = hashCode * 59 + LineAnnotationParameters.GetHashCode(); } if (SquareAndCircleAnnotationParameters != null) { hashCode = hashCode * 59 + SquareAndCircleAnnotationParameters.GetHashCode(); } if (RubberStampAnnotationParameters != null) { hashCode = hashCode * 59 + RubberStampAnnotationParameters.GetHashCode(); } return(hashCode); } }
/// <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 + CropBoxLeft.GetHashCode(); hashCode = hashCode * 59 + CropBoxTop.GetHashCode(); hashCode = hashCode * 59 + CropBoxWidth.GetHashCode(); hashCode = hashCode * 59 + CropBoxHeight.GetHashCode(); hashCode = hashCode * 59 + CropUnit.GetHashCode(); return(hashCode); } }
/// <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 + Compression.GetHashCode(); hashCode = hashCode * 59 + Interlaced.GetHashCode(); hashCode = hashCode * 59 + Resolution.GetHashCode(); hashCode = hashCode * 59 + RenderFormFields.GetHashCode(); hashCode = hashCode * 59 + KeepRasterPDFResolution.GetHashCode(); return(hashCode); } }
/// <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 + Left.GetHashCode(); hashCode = hashCode * 59 + Top.GetHashCode(); hashCode = hashCode * 59 + Right.GetHashCode(); hashCode = hashCode * 59 + Bottom.GetHashCode(); hashCode = hashCode * 59 + PageBox.GetHashCode(); return(hashCode); } }
/// <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(); } if (Language != null) { hashCode = hashCode * 59 + Language.GetHashCode(); } hashCode = hashCode * 59 + SkipPageWithText.GetHashCode(); return(hashCode); } }
/// <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(); } if (Language != null) { hashCode = hashCode * 59 + Language.GetHashCode(); } hashCode = hashCode * 59 + AutomaticallyApplyRotation.GetHashCode(); return(hashCode); } }
/// <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 + TextExtractionMode.GetHashCode(); hashCode = hashCode * 59 + TextExtractionAreaLeft.GetHashCode(); hashCode = hashCode * 59 + TextExtractionAreaTop.GetHashCode(); hashCode = hashCode * 59 + TextExtractionAreaWidth.GetHashCode(); hashCode = hashCode * 59 + TextExtractionAreaHeight.GetHashCode(); hashCode = hashCode * 59 + IncludeHeader.GetHashCode(); return(hashCode); } }
/// <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 + RemoveBlackBorders.GetHashCode(); hashCode = hashCode * 59 + Deskew.GetHashCode(); hashCode = hashCode * 59 + RemoveLeftMarginPunchHoles.GetHashCode(); hashCode = hashCode * 59 + RemoveTopMarginPunchHoles.GetHashCode(); hashCode = hashCode * 59 + RemoveRightMarginPunchHoles.GetHashCode(); hashCode = hashCode * 59 + RemoveBottomMarginPunchHoles.GetHashCode(); hashCode = hashCode * 59 + DespeckleStrength.GetHashCode(); return(hashCode); } }
/// <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); } }
/// <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(); } if (Filters != null) { hashCode = hashCode * 59 + Filters.GetHashCode(); } hashCode = hashCode * 59 + RoiLeft.GetHashCode(); hashCode = hashCode * 59 + RoiTop.GetHashCode(); hashCode = hashCode * 59 + RoiWidth.GetHashCode(); hashCode = hashCode * 59 + RoiHeight.GetHashCode(); hashCode = hashCode * 59 + GaussianKernelSize.GetHashCode(); hashCode = hashCode * 59 + UnsharpMaskRadius.GetHashCode(); hashCode = hashCode * 59 + UnsharpMaskAmount.GetHashCode(); hashCode = hashCode * 59 + UnsharpMaskThreshold.GetHashCode(); hashCode = hashCode * 59 + SubtractBackgroundRollingBallSize.GetHashCode(); hashCode = hashCode * 59 + SubtractBackgroundLightBackground.GetHashCode(); hashCode = hashCode * 59 + MedianKernelSize.GetHashCode(); hashCode = hashCode * 59 + MinKernelSize.GetHashCode(); hashCode = hashCode * 59 + MaxKernelSize.GetHashCode(); hashCode = hashCode * 59 + SoftenValue.GetHashCode(); hashCode = hashCode * 59 + ColorizeHue.GetHashCode(); hashCode = hashCode * 59 + ColorizeSaturation.GetHashCode(); hashCode = hashCode * 59 + ColorizeLuminosity.GetHashCode(); return(hashCode); } }