public static void DestroySingleton() { if (SINGLETON_InstrumentMaster != null) { SINGLETON_InstrumentMaster = null; } else { throw new InvalidOperationException("Singleton has already been destroyed"); } }
public static void CreateSingleton() { if (SINGLETON_InstrumentMaster == null) { SINGLETON_InstrumentMaster = new InstrumentMaster(); } else { throw new InvalidOperationException("Singleton has already been initialized"); } }