public int GetHashCode(IJsonNotificationOldData obj) { if (obj == null) { return(0); } unchecked { var hashCode = obj.Desc?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Instance.GetHashCode(obj.List); hashCode = (hashCode * 397) ^ obj.Pos.GetHashCode(); hashCode = (hashCode * 397) ^ (obj.Text?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ obj.Closed.GetHashCode(); return(hashCode); } }
public bool Equals(IJsonNotificationOldData x, IJsonNotificationOldData y) { if (x == null && y != null) { return(false); } if (x != null && y == null) { return(false); } if (x == null) { return(true); } return(x.Desc == y.Desc && Instance.Equals(x.List, y.List) && x.Pos == y.Pos && x.Text == y.Text && x.Closed == y.Closed); }