コード例 #1
0
 protected Product(string name, BaseUnit measure, bool isVegetarian, FoodType type, ShoppingUnit unit, decimal price)
 {
     this.Name = name;
     this.BaseUnit = measure;
     this.IsVegetarian = isVegetarian;
     this.ShoppingUnit = unit;
     this.PricePerShoppingUnit = price;
     this.FoodType = type;
 }
コード例 #2
0
 protected PackagedFood(string name, BaseUnit measure, bool isVegetarian, FoodType type, ShoppingUnit unit, decimal price)
     : base(name, measure, isVegetarian, type, unit, price)
 {
 }
コード例 #3
0
 public Dairy(string name, ShoppingUnit unit, decimal price)
     : base(name, BaseUnit.grams, false, FoodType.Dairy, unit, price)
 {
 }