How we can implement design pattern "Strategy" using C#?
I wonder how "Strategy" could be implemented by using built-in features of C#, maybe some of BCL etc. I found interface "IComparer" which provides a method "Compare" and it works like a strategy. What other implementations may be offered?
Aucun commentaire:
Enregistrer un commentaire