public class Singleton
{
private static readonly Lazy<Singleton> lazy =
new Lazy<Singleton>(() => new Singleton());
public string Name { get; private set; }
private Singleton()
{
Name = System.Guid.NewGuid().ToString();
}
public static Singleton GetInstance()
{
return lazy.Value;
}
}