abishekaditya / DesignPatterns

Project : Design Patterns Examples in C#
GNU General Public License v3.0
2.48k stars 611 forks source link

Refactor examples with Readme and more real-world cases #18

Open abishekaditya opened 4 years ago

abishekaditya commented 4 years ago

A strategy pattern that makes ducks quack is less useful than that which uses an actual strategy to help the developer (like say, a sorting function that changes implementation based on number of elements). The readme should also be there as an introduction to the need for the pattern itself, as well as maybe some good quality (subjective) external references and links

FunkyMonk8111 commented 1 year ago

How would you implement this? I found this article, would this work? Inheriting IList or ICollection from the Duck class? https://newdevsguide.com/2022/10/09/understanding-dotnet-collection-interfaces/