Пример #1
0
        public NativeType(NativeHeap heap, NativeModule module, string name, ulong eeType, Desktop.IMethodTableData mtData)
        {
            _heap   = heap;
            _module = module;
            _name   = name;
            _eeType = eeType;

            if (mtData != null)
            {
                _baseSize         = mtData.BaseSize;
                _componentSize    = mtData.ComponentSize;
                _containsPointers = mtData.ContainsPointers;
            }
        }
Пример #2
0
        public NativeType(NativeHeap heap, int index, NativeModule module, string name, ulong eeType, Desktop.IMethodTableData mtData)
        {
            _heap   = heap;
            _module = module;
            _name   = name;
            _eeType = eeType;
            _index  = index;
            _gcDesc = new Lazy <GCDesc>(FillGCDesc);

            if (mtData != null)
            {
                _baseSize         = mtData.BaseSize;
                _componentSize    = mtData.ComponentSize;
                _containsPointers = mtData.ContainsPointers;
            }
        }