示例#1
0
 public void PrintToConsole()
 {
     Console.WriteLine("ID: " + ID.ToString() + ","
                       + "Name: " + Name + ","
                       + "Portion Count: " + PortionCount.ToString() + ","
                       + "Unit: " + Unit.ToString() + ","
                       + "Portion Size: " + PortionSize.ToString());
 }
 public TurkeyBread(PortionSize size)
 {
     this.size = size;
 }
示例#3
0
 protected CondimentDecorator(string description, PortionSize portionSize) : base(description, portionSize)
 {
 }
示例#4
0
 protected Beverage(string description, PortionSize size)
 {
     _description = description;
     _size        = size;
 }
示例#5
0
 public Cheese(PortionSize size)
 {
     this.size = size;
 }
示例#6
0
 public Meat(PortionSize size)
 {
     this.size = size;
 }
 public Comdiment(PortionSize size)
 {
     this.size = size;
 }
示例#8
0
 public Espresso(PortionSize portionSize) : base("Espresso", portionSize)
 {
 }
示例#9
0
 public override string ToString()
 {
     return(ID.ToString() + "," + Name + "," + PortionCount.ToString() + "," + Unit.ToString() + "," + PortionSize.ToString());
 }
示例#10
0
 public HouseBlend(PortionSize portionSize) : base("House Blend Coffee", portionSize)
 {
 }
示例#11
0
 public Decaf(PortionSize portionSize) : base("Without coffeine", portionSize)
 {
 }
示例#12
0
 public DarkRoast(PortionSize portionSize) : base("Dark Roast Coffee", portionSize)
 {
 }