/// <summary> /// This is not implemented and shouldn't ever be implemented; we want a singleton here /// </summary> /// <param name="c"></param> private Collections(Collections c) { throw new NotImplementedException(); }
public static Collections GetInstanceSafe() #endif { while (!LOCK.WaitOne()) { Thread.Sleep(300); } if (INSTANCE == null) INSTANCE = new Collections(); LOCK.ReleaseMutex(); return INSTANCE; }
public static Collections GetInstance() { if (INSTANCE == null) INSTANCE = new Collections(); return INSTANCE; }