示例#1
0
        void IModuleDictionaryInitialization.InitializeModuleDictionary(CodeContext context)
        {
            if (_names.Length == 0)
            {
                return;
            }

            if (_data[0] != null)
            {
                throw Error.AlreadyInitialized();
            }

            for (int i = 0; i < _names.Length; i++)
            {
                _data[i] = new ModuleGlobalWrapper(context, _names[i]);
            }
        }