using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace LD_24.Code { /// /// Holds informations about a single product /// public class Product { /// /// Identification number of product /// public string ID { get; set; } /// /// Name of product /// public string Name { get; set; } /// /// Price of product /// public decimal Price { get; set; } public Product(string iD, string name, decimal price) { ID = iD; Name = name; Price = price; } public override string ToString() { return String.Format("Product{ID = '{0}'}", ID); } } }