Hi,
Please let me know what the best way to implement Singleton Design Pattern in C# with performance constraint?
Hi,
Please let me know what the best way to implement Singleton Design Pattern in C# with performance constraint?
One of the best article on Signleton pattern by jon skeet.
public class Singleton
{
static readonly Singleton _instance = new Singleton();
static Singleton() { }
private Singleton() { }
static public Singleton Instance
{
get { return _instance; }
}
}