public override bool Equals(object obj) { if (obj is Product product) { return(Productid.Equals(product.Productid)); } return(false); }