Stats

49 Contributors: 1 Sunday, July 31, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap
Download eBook

Implementing Decorator Design Pattern

Download c# eBook

Remarks

Pros of using Decorator:

  • you can add new functionalities at runtime in different configurations
  • good alternative for inheritance
  • client can choose configuration he wants to use

Related Examples