/// <summary> /// Returns true if ImageConvertColorDepthParameters instances are equal /// </summary> /// <param name="input">Instance of ImageConvertColorDepthParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(ImageConvertColorDepthParameters 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)) ) && ( ConvertColorDepthMode == input.ConvertColorDepthMode || ConvertColorDepthMode.Equals(input.ConvertColorDepthMode) ) && ( Depth1BppOtsuThreshold == input.Depth1BppOtsuThreshold || Depth1BppOtsuThreshold.Equals(input.Depth1BppOtsuThreshold) ) && ( Depth1BppBradleyThreshold == input.Depth1BppBradleyThreshold || Depth1BppBradleyThreshold.Equals(input.Depth1BppBradleyThreshold) ) && ( Depth1BppSauvolaFactor == input.Depth1BppSauvolaFactor || Depth1BppSauvolaFactor.Equals(input.Depth1BppSauvolaFactor) )); }
/// <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); } }