public CConfigManager() { if (Instance != null) { throw new InvalidOperationException("There can only be one Config Manager at the same time!"); } m_argumentConverters = new TConsoleArgConverters(); m_variables = new TCVarDictionary(); m_commands = new TCommandDictionary(); m_owningThread = Thread.CurrentThread; Instance = this; }
public void Dispose() { Instance = null; AppDomain.CurrentDomain.AssemblyLoad -= OnAssemblyLoaded; }