Пример #1
0
        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;
        }
Пример #2
0
        public void Dispose()
        {
            Instance = null;

            AppDomain.CurrentDomain.AssemblyLoad -= OnAssemblyLoaded;
        }