/// <summary> /// Returns true if PdfClonePageParameters instances are equal /// </summary> /// <param name="input">Instance of PdfClonePageParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfClonePageParameters input) { if (input == null) { return(false); } return (( FileId == input.FileId || (FileId != null && FileId.Equals(input.FileId)) ) && ( SourceFileId == input.SourceFileId || (SourceFileId != null && SourceFileId.Equals(input.SourceFileId)) ) && ( PageRange == input.PageRange || (PageRange != null && PageRange.Equals(input.PageRange)) ) && ( DestinationPage == input.DestinationPage || DestinationPage.Equals(input.DestinationPage) )); }
/// <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 (SourceFileId != null) { hashCode = hashCode * 59 + SourceFileId.GetHashCode(); } if (PageRange != null) { hashCode = hashCode * 59 + PageRange.GetHashCode(); } hashCode = hashCode * 59 + DestinationPage.GetHashCode(); return(hashCode); } }