/// <summary>
 /// Initializes a new instance of the <see cref="DecoratorPattern.WithExtraHam"/> class.
 /// </summary>
 /// <param name="component">Component.</param>
 public WithExtraHam(PizzaElement component)
     : base(component)
 {
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DecoratorPattern.Decorator"/> class.
 /// </summary>
 /// <param name="component">Component.</param>
 protected PizzaTopping(PizzaElement component)
 {
     _component = component;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DecoratorPattern.WithExtraCheese"/> class.
 /// </summary>
 /// <param name="component">Component.</param>
 public WithExtraCheese(PizzaElement component)
     : base(component)
 {
 }