Click here to Skip to main content
15,887,746 members
Everything / Decorator

Decorator

decorator

Great Reads

by Kenji Elzerman
C# decorator pattern allows adding behavior to objects at runtime. In this tutorial, I show you how to implement the decorator pattern with C# in a minimal API.
by ASP.NET Community
The Decorator patterns allows an objects behavior to be dynamically altered at runtime.This change in behavior is accomplished by wrapping an
by Rahul Rajat Singh
This article talks about the basics of decorator pattern and see when this pattern can be found useful.
by Abul Kayes
Implementation of the Decorator pattern in C# .NET.

Latest Articles

by Kenji Elzerman
C# decorator pattern allows adding behavior to objects at runtime. In this tutorial, I show you how to implement the decorator pattern with C# in a minimal API.
by After2050
In this article, I would like to share some of the learnings I got in the process of building an UI library using typescript decorators
by Tarek Najem
What type of result should the Service method return to the Caller
by Surajit T. Karmakar
This article demonstrates usage of Decorator pattern in C# with a practical software programming example.

All Articles

Sort by Score

Decorator 

5 Apr 2023 by Kenji Elzerman
C# decorator pattern allows adding behavior to objects at runtime. In this tutorial, I show you how to implement the decorator pattern with C# in a minimal API.
11 Oct 2013 by ASP.NET Community
The Decorator patterns allows an objects behavior to be dynamically altered at runtime.This change in behavior is accomplished by wrapping an
17 Feb 2015 by junaidshaikh
Hi,I'm new to Entity framework and Repository pattern. I'm trying to implement Repository Decorator pattern which contain basically Auditable and Archivable classes and extends the Attribute class. But when I add them on any entity class as: [Auditable] public class Student{ ...
29 Jul 2016 by Member 12660641
Currently I am having an sample application that use to render a photo with and without watermark. I have two versions of the application: One with Decorator applied and the other one is without Decorator (kindly see the code below). I am struggling at what is the disadvantages in my own...
11 Jul 2019 by Member 13608791
I'll paste my code below: #include using namespace std; class Smoothy{ private: int price; public: int getPrice(){ return price; } virtual ~Smoothy() = default; virtual string description() = 0; }; class BasicSmoothy: public Smoothy{ private: string...
11 Jul 2019 by Stefan_Lang
If you can't use virtual functions, where's your point in using the decorator pattern?? Just store the description and price of each ingredient in a simple struct and create a list or std::vector to hold the ingredients. Problem solved. If you have a specific reason to use the decorator...
21 Oct 2012 by Rahul Rajat Singh
This article talks about the basics of decorator pattern and see when this pattern can be found useful.
7 Feb 2013 by Abul Kayes
Implementation of the Decorator pattern in C# .NET.
24 Jul 2012 by PratapReddyP
Structural Pattern : Decorator Pattern Demo
20 Aug 2016 by Oddly Functional
One of the least understood design patterns, explained with practical examples.
10 Apr 2020 by Surajit T. Karmakar
This article demonstrates usage of Decorator pattern in C# with a practical software programming example.
14 Oct 2020 by Tarek Najem
What type of result should the Service method return to the Caller
27 Nov 2021 by After2050
In this article, I would like to share some of the learnings I got in the process of building an UI library using typescript decorators