示例#1
0
        private static Product GenerateProduct()
        {
            var name = "GenericProduct";
            var price = rnd.Next(150);
            var newProduct = new Product(name, price);

            return newProduct;
        }
示例#2
0
文件: Product.cs 项目: Ivorankov/DSA
 public int CompareTo(Product other)
 {
     return this.Price - other.Price;
 }