/// <summary> /// Equalses the specified other. /// </summary> /// <param name="other">The other.</param> /// <returns></returns> public bool Equals(PfeDataModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id == other.Id && Equals(Name, other.Name) && Type.Equals(other.Type) && ShowInActions.Equals(other.ShowInActions) && RowFilterEnabled == other.RowFilterEnabled && SummaryRowEnabled == other.SummaryRowEnabled && Equals(SummaryRow, other.SummaryRow) && MultiSortEnabled == other.MultiSortEnabled && RequiresFilter == other.RequiresFilter && Equals(WaitForInputData, other.WaitForInputData) && Equals(Fields, other.Fields) && Equals(FieldGroups, other.FieldGroups) && Equals(MultiSort, other.MultiSort) && Equals(Filters, other.Filters) && Equals(Pages, other.Pages) && Equals(Layout, other.Layout) && Equals(SelectionMode, other.SelectionMode) && Equals(DoubleClickAction, other.DoubleClickAction) && Equals(UseAsBrowser, other.UseAsBrowser) && Equals(UseAsBrowserRank, other.UseAsBrowserRank) && Equals(UseAsBrowserDefaultCode, other.UseAsBrowserDefaultCode) && Equals(Pivot, other.Pivot)); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { int result = 17; result = result * 23 + Id.GetHashCode(); result = result * 23 + ((Name != null) ? Name.GetHashCode() : 0); result = result * 23 + Type.GetHashCode(); result = result * 23 + ShowInActions.GetHashCode(); result = result * 23 + RowFilterEnabled.GetHashCode(); result = result * 23 + SummaryRowEnabled.GetHashCode(); result = result * 23 + ((SummaryRow != null) ? SummaryRow.GetHashCode() : 0); result = result * 23 + MultiSortEnabled.GetHashCode(); result = result * 23 + RequiresFilter.GetHashCode(); result = result * 23 + ((WaitForInputData != null) ? WaitForInputData.GetHashCode() : 0); result = result * 23 + ((Fields != null) ? Fields.GetHashCode() : 0); result = result * 23 + ((FieldGroups != null) ? FieldGroups.GetHashCode() : 0); result = result * 23 + ((MultiSort != null) ? MultiSort.GetHashCode() : 0); result = result * 23 + ((Filters != null) ? Filters.GetHashCode() : 0); result = result * 23 + ((Pages != null) ? Pages.GetHashCode() : 0); result = result * 23 + ((Layout != null) ? Layout.GetHashCode() : 0); result = result * 23 + SelectionMode.GetHashCode(); result = result * 23 + ((DoubleClickAction != null) ? DoubleClickAction.GetHashCode() : 0); result = result * 23 + ((UseAsBrowser != null) ? UseAsBrowser.GetHashCode() : 0); result = result * 23 + ((UseAsBrowserRank != null) ? UseAsBrowserRank.GetHashCode() : 0); result = result * 23 + ((UseAsBrowserDefaultCode != null) ? UseAsBrowserDefaultCode.GetHashCode() : 0); result = result * 23 + ((Pivot != null) ? Pivot.GetHashCode() : 0); return(result); } }