public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } var that = obj as ShoppingCartItem; return(ProductCatalogId.Equals(that?.ProductCatalogId)); }
public override int GetHashCode() { return(ProductCatalogId.GetHashCode()); }