Monday, July 23, 2007

Thread Safe Singleton Implementation

public sealed class Singleton
{
private static readonly Singleton instance = new Singleton();

private Singleton(){}

public static Singleton Instance
{
get
{
return instance;
}
}
}

No comments: