/// <summary> /// Make the get instance from the singleton thread safe /// </summary> /// <returns>A new or the previously instantiated class</returns> public static InstagramCodeContainer GetInstance() { lock (ThreadLock) { return Self ?? (Self = new InstagramCodeContainer()); } }
/// <summary> /// Make the get instance from the singleton thread safe /// </summary> /// <returns>A new or the previously instantiated class</returns> public static InstagramCodeContainer GetInstance() { lock (ThreadLock) { return(Self ?? (Self = new InstagramCodeContainer())); } }