c# - should a strategy pattern always be implemented as a singleton? -


should strategy pattern implemented singleton in .net/c#? can provide example code in c#?

a strategy may have parameters or state. strategy may extended using inheritance. these uses imply having multiple instances of strategy, it's not idea always require strategy singleton.


Comments