/// <summary>
 /// Initializes a new instance of the <see cref="DecoratorPattern.WithExtraHam"/> class.
 /// </summary>
 /// <param name="component">Component.</param>
 public WithExtraHam(PizzaElement component)
     : base(component)
 {
 }
Пример #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;
 }
Пример #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)
 {
 }