The first 200 students can use code PATTERNS20 to get 20% off our 3 new bundles containing 23 new courses:
Creational Design Patterns in C# , Structural Design Patterns in C# and Behavioral Design Patterns in C# !

Design Patterns in C#: Decorator

Learn everything there is to know about the Decorator Design Pattern

The Decorator Design Pattern is a fundamental design pattern in software engineering, often used to add responsibilities to objects dynamically at runtime. Mastering this pattern is crucial for developers, as it enables flexible and scalable code by allowing behavior to be extended without modifying the original class. The Decorator pattern is especially valuable in applications requiring versatile functionality, such as enhancing user interfaces or adding features to core objects incrementally. In this course, Amichai Mantinband will guide you through everything you need to know to leverage the Decorator pattern, empowering you to build modular, adaptable, and maintainable applications.

Curriculum

Course overview (00:27)

Definition (06:21)

Class Diagram (06:48)

Tesla Example (04:50)

Tesla Example Class Diagram (06:06)

Section Recap (02:20)

Implementing the Decorator Pattern (05:58)

Implementing the Tesla Example (07:42)

Exploring Middleware As Decorators (03:57)

Section Recap (02:03)

Benefits (01:09)

Drawbacks (02:18)

Conclusion (00:14)

Course Info

Level:
Design Patterns
Duration:
50m
Rating (New):
star

Part of the bundle

Structural Design Patterns in C# Bundle thumbnail Get it for 20% off

Starting at

$59.99

per month

Subscribe to Pro

About the Author

author_img

Amichai Mantinband

Amichai Mantinband is a Software Engineer at Microsoft and a .NET content creator.
He works on large-scale, distributed systems within Microsoft Office, serving over 100 million daily users. He is a speaker at official .NET conferences, and within Microsoft, he authors and teaches software architecture courses.
Amichai is the author of NuGet packages ErrorOr & Throw and has a .NET programming YouTube channel covering advanced topics such as design patterns, architecture, and best practices.

More courses by Amichai Mantinband