Skip to content

Decorator Pattern in Winforms without DI. Includes System.Runtime.Caching

Notifications You must be signed in to change notification settings

Mayurbanta/DecoratorPatternWinForms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DecoratorPatternWinForms

Decorator Pattern in Winforms without DI. Includes System.Runtime.Caching

This repo contains simple implementation of decorator pattern without dependency injection which gives you idea of object hierarchy and composition in this pattern.

• Adapter pattern concept in Decorator Pattern - Design criteria for Decorator pattern is that you should have common base class (example - base interface), if you have a class which you do not own then you can create an intermediate class and implement your base class, this essentially is adapter pattern Decorator pattern is Go4 deign pattern, it is type of structural design pattern. Adding behavior to the class without making changes to that class. E.g. weather class, and then add logging to that class. This can be achieved using decorator class. Basically, decorator allows to extend the class and honor Open-Closed principle.

About

Decorator Pattern in Winforms without DI. Includes System.Runtime.Caching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages