An open API service indexing awesome lists of open source software.

https://github.com/dcyuksel/decoratorpattern

Decorator Pattern in C#
https://github.com/dcyuksel/decoratorpattern

decorator-pattern design-patterns dotnet-core solid-principles

Last synced: 5 months ago
JSON representation

Decorator Pattern in C#

Awesome Lists containing this project

README

          

# Decorator Pattern in C#
The Decorator Pattern is a structural design pattern that allows us to add behaviors to classes separately using decorators. Each behavior is wrapped as a decorator and applied to the class. This approach lets us extend behaviors without modifying existing ones and keeps behaviors isolated. It also promotes code reuse, helping us avoid writing the same code multiple times.

For details: https://medium.com/@dnzcnyksl/decorator-pattern-in-c-a16234caf7c6