Example #1
0
        public ModuleGlobalSlot(Slot builtinWrapper)
        {
            Debug.Assert(builtinWrapper.Type == typeof(ModuleGlobalWrapper));
            if (builtinWrapper.Type != typeof(ModuleGlobalWrapper)) throw new ArgumentException("builtinWrapper " + builtinWrapper.GetType().FullName);

            _wrapper = builtinWrapper;
        }
Example #2
0
        public ModuleGlobalSlot(Slot builtinWrapper)
        {
            Debug.Assert(builtinWrapper.Type == typeof(ModuleGlobalWrapper));
            if (builtinWrapper.Type != typeof(ModuleGlobalWrapper))
            {
                throw new ArgumentException("builtinWrapper " + builtinWrapper.GetType().FullName);
            }

            _wrapper = builtinWrapper;
        }