示例#1
0
 public ShoppingListItem(string name, ShoppingItemTypes type, int number)
 {
     this.Name = name;
     this.Type = type;
     this.NumberOfItems = number;
 }
示例#2
0
 public void Add(string name, ShoppingItemTypes type, int numberOfItem)
 {
     this.Items.Add(new ShoppingListItem(name, type, numberOfItem));
 }