Click here to Skip to main content
15,888,579 members
Articles / Programming Languages / C#

Decorator Pattern in C# - 3 Versions

Rate me:
Please Sign up or sign in to vote.
4.55/5 (9 votes)
1 Apr 2022MIT12 min read 9.6K   99   16  
Tutorial on Decorator Pattern in C#, showing 3 versions in C#
This article is a tutorial on Decorator Pattern in C#. First, we show the Classic Decorator pattern, which is described in the literature and by GoF books. Then we show 2 alternative versions, that can be viewed as “modern-C#-enabled” versions of the pattern. The intended audience is Intermediate C# programmer and above.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer
Serbia Serbia
Mark Pelf is the pen name of just another Software Engineer from Belgrade, Serbia.
My Blog https://markpelf.com/

Comments and Discussions