7
。包含自定义类对象列表的()
我正在尝试.Contains()在自定义对象列表上使用该功能 这是清单: List<CartProduct> CartProducts = new List<CartProduct>(); 和CartProduct: public class CartProduct { public Int32 ID; public String Name; public Int32 Number; public Decimal CurrentPrice; /// <summary> /// /// </summary> /// <param name="ID">The ID of the product</param> /// <param name="Name">The name of the product</param> /// <param name="Number">The total number of that …