I have some class it is a singleton we have this class in already several applications and it is used there as a singleton.
Now i am writing some new application and i need several instances of that class , what is a best practice to have sevaral instances of it ?
By deriving from it and making the private constructur to be public, I work with c# ?
Or there can be someother idea here ?
Thanks
There is supposed to be only one Singleton. If you have more than one, it’s not a Singleton.
Maybe a Multiton is what you want?