The decorator design pattern allows you to dynamically add behavior to your classes without modifying the original class. This allows you to layer in new functionality to a class while keeping different concerns cleanly separated.
The decorator design pattern allows you to dynamically add behavior to your classes without modifying the original class. This allows you to layer in new functionality to a class while keeping different concerns cleanly separated. The decorator pattern is especially useful for when you need to apply cross cutting concerns like logging, authorization, and caching, but can also be used to modify data passed to and from an object. Understanding how to apply the decorator pattern gives you a powerful tool when you need to add behavior to and extend the functionality of your classes.
David Berry is a software engineer with over 15 years of experience developing applications in languages such as Java and C#. Throughout his career, he has worked extensively with enterprise database systems including Oracle and SQL Server.
Course Overview [Autogenerated] Hello, everyone. My name is David Barre in Welcome, My core C sharp design patterns. Decorator. I'm a plural site author, and in this course we're going to learn about one of the classic gang of four design patterns. The decorator. The decorator pattern allows you to dynamically add functionality to classes without modifying the target class. It does this by creating a wrapper around the original class, which gives you an extension point to inject in new behavior. In this course, I'll show you how the decorator pattern works. Will coat up and apply a couple of decorator classes ourselves, and we'll see where the decorator pattern is used within dot net itself. Before starting this course, you should be comfortable with object orientated concepts in C Sharp, especially the use of interfaces. By the end of this course, you'll know everything you need to know about how to use the decorator pattern in your projects. I hope you'll join me on this journey to learn the decorator design better in C sharp with this course on floral site