Implement singleton
Anonym
In C#: public sealed class Singleton { private static Singleton s_instance = new Singleton(); // Make the constructor private so that no new instance can be generated from outside private Singleton() {} public Singleton GetInstance() { return s_instance(); } }