Skip to content

Instantly share code, notes, and snippets.

View cgatian's full-sized avatar
🏠
Working from home

Chaz Gatian cgatian

🏠
Working from home
View GitHub Profile
public class Singleton
{
private static readonly Lazy<Singleton> _lazy = new Lazy<Singleton>(
() => new Singleton(), isThreadSafe: true);
public static Singleton Instance
{
get
{
return Singleton._lazy.Value;