/// <summary> /// Returns true if PdfSetInitialViewParameters instances are equal /// </summary> /// <param name="input">Instance of PdfSetInitialViewParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfSetInitialViewParameters input) { if (input == null) { return(false); } return (( FileId == input.FileId || (FileId != null && FileId.Equals(input.FileId)) ) && ( PageMode == input.PageMode || PageMode.Equals(input.PageMode) ) && ( LayoutMode == input.LayoutMode || LayoutMode.Equals(input.LayoutMode) ) && ( NonFullScreenPageMode == input.NonFullScreenPageMode || NonFullScreenPageMode.Equals(input.NonFullScreenPageMode) ) && ( OpenPage == input.OpenPage || OpenPage.Equals(input.OpenPage) ) && ( OpenZoom == input.OpenZoom || OpenZoom.Equals(input.OpenZoom) ) && ( HideToolbar == input.HideToolbar || HideToolbar.Equals(input.HideToolbar) ) && ( HideMenubar == input.HideMenubar || HideMenubar.Equals(input.HideMenubar) ) && ( HideWindowUI == input.HideWindowUI || HideWindowUI.Equals(input.HideWindowUI) ) && ( FitWindow == input.FitWindow || FitWindow.Equals(input.FitWindow) ) && ( CenterWindow == input.CenterWindow || CenterWindow.Equals(input.CenterWindow) ) && ( DisplayDocTitle == input.DisplayDocTitle || DisplayDocTitle.Equals(input.DisplayDocTitle) )); }
/// <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(); } hashCode = hashCode * 59 + PageMode.GetHashCode(); hashCode = hashCode * 59 + LayoutMode.GetHashCode(); hashCode = hashCode * 59 + NonFullScreenPageMode.GetHashCode(); hashCode = hashCode * 59 + OpenPage.GetHashCode(); hashCode = hashCode * 59 + OpenZoom.GetHashCode(); hashCode = hashCode * 59 + HideToolbar.GetHashCode(); hashCode = hashCode * 59 + HideMenubar.GetHashCode(); hashCode = hashCode * 59 + HideWindowUI.GetHashCode(); hashCode = hashCode * 59 + FitWindow.GetHashCode(); hashCode = hashCode * 59 + CenterWindow.GetHashCode(); hashCode = hashCode * 59 + DisplayDocTitle.GetHashCode(); return(hashCode); } }