views:

52

answers:

3

Hi,

Please let me know what the best way to implement Singleton Design Pattern in C# with performance constraint?

+1  A: 

One of the best article on Signleton pattern by jon skeet.

http://www.yoda.arachsys.com/csharp/singleton.html

this. __curious_geek
+2  A: 

Jon Skeet's Implementing the Singleton Pattern in C#

Sri Kumar
+1  A: 
public class Singleton 
{
    static readonly Singleton _instance = new Singleton();

    static Singleton() { }

    private Singleton() { }

    static public Singleton Instance
    {
        get  { return _instance; }
    }
}
Carlos Loth