public static Singleton2 GetInstance() { lock (obj) { if (_instance == null) { _instance = new Singleton2(); } } return(_instance); }
public static Singleton2 GetInstance() { lock (obj) { if (_instance == null) { _instance = new Singleton2(); } } return _instance; }