Abstract base class to force each derived classes to be Singleton

this. __curious_geek picture this. __curious_geek · May 18, 2010 · Viewed 7.9k times · Source

How do I make an abstract class that shall force each derived classes to be Singleton ? I use C#.

Answer

Jack picture Jack · May 18, 2010

that would not work because the singleton needs somwhere a static access and that can not be forced.

for singletonimplemention + examples see: Implementing the Singleton Pattern in C#