public bool Equals([AllowNull] Image other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((Visible == other.Visible && Visible != null && other.Visible != null && Visible.Equals(other.Visible)) && (Source == other.Source && Source != null && other.Source != null && Source.Equals(other.Source)) && (Layer == other.Layer && Layer != null && other.Layer != null && Layer.Equals(other.Layer)) && (SizeX == other.SizeX && SizeX != null && other.SizeX != null && SizeX.Equals(other.SizeX)) && (SizeY == other.SizeY && SizeY != null && other.SizeY != null && SizeY.Equals(other.SizeY)) && (Sizing == other.Sizing && Sizing != null && other.Sizing != null && Sizing.Equals(other.Sizing)) && (Opacity == other.Opacity && Opacity != null && other.Opacity != null && Opacity.Equals(other.Opacity)) && (X == other.X && X != null && other.X != null && X.Equals(other.X)) && (Y == other.Y && Y != null && other.Y != null && Y.Equals(other.Y)) && (XAnchor == other.XAnchor && XAnchor != null && other.XAnchor != null && XAnchor.Equals(other.XAnchor)) && (YAnchor == other.YAnchor && YAnchor != null && other.YAnchor != null && YAnchor.Equals(other.YAnchor)) && (XRef == other.XRef && XRef != null && other.XRef != null && XRef.Equals(other.XRef)) && (YRef == other.YRef && YRef != null && other.YRef != null && YRef.Equals(other.YRef)) && (Name == other.Name && Name != null && other.Name != null && Name.Equals(other.Name)) && (TemplateItemName == other.TemplateItemName && TemplateItemName != null && other.TemplateItemName != null && TemplateItemName.Equals(other.TemplateItemName))); }
/// <summary> /// Returns true if DashboardWidgetBean instances are equal /// </summary> /// <param name="input">Instance of DashboardWidgetBean to be compared</param> /// <returns>Boolean</returns> public bool Equals(DashboardWidgetBean input) { if (input == null) { return(false); } return (( Col == input.Col || (Col != null && Col.Equals(input.Col)) ) && ( Row == input.Row || (Row != null && Row.Equals(input.Row)) ) && ( SizeX == input.SizeX || (SizeX != null && SizeX.Equals(input.SizeX)) ) && ( SizeY == input.SizeY || (SizeY != null && SizeY.Equals(input.SizeY)) ) && ( Type == input.Type || (Type != null && Type.Equals(input.Type)) ) && ( Options == input.Options || (Options != null && Options.Equals(input.Options)) )); }