/// <summary> /// Returns true if ImageCleanupDocumentParameters instances are equal /// </summary> /// <param name="input">Instance of ImageCleanupDocumentParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(ImageCleanupDocumentParameters input) { if (input == null) { return(false); } return (( FileId == input.FileId || (FileId != null && FileId.Equals(input.FileId)) ) && ( PageRange == input.PageRange || (PageRange != null && PageRange.Equals(input.PageRange)) ) && ( RemoveBlackBorders == input.RemoveBlackBorders || RemoveBlackBorders.Equals(input.RemoveBlackBorders) ) && ( Deskew == input.Deskew || Deskew.Equals(input.Deskew) ) && ( RemoveLeftMarginPunchHoles == input.RemoveLeftMarginPunchHoles || RemoveLeftMarginPunchHoles.Equals(input.RemoveLeftMarginPunchHoles) ) && ( RemoveTopMarginPunchHoles == input.RemoveTopMarginPunchHoles || RemoveTopMarginPunchHoles.Equals(input.RemoveTopMarginPunchHoles) ) && ( RemoveRightMarginPunchHoles == input.RemoveRightMarginPunchHoles || RemoveRightMarginPunchHoles.Equals(input.RemoveRightMarginPunchHoles) ) && ( RemoveBottomMarginPunchHoles == input.RemoveBottomMarginPunchHoles || RemoveBottomMarginPunchHoles.Equals(input.RemoveBottomMarginPunchHoles) ) && ( DespeckleStrength == input.DespeckleStrength || DespeckleStrength.Equals(input.DespeckleStrength) )); }
/// <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); } }