public ClrmdPrimitiveType(ITypeHelpers helpers, ClrModule module, ClrHeap heap, ClrElementType type) { Module = module; ClrObjectHelpers = helpers.ClrObjectHelpers; Heap = heap; ElementType = type; }
public ClrmdStringType(ITypeHelpers helpers, ClrHeap heap, ulong mt, int token) { Helpers = helpers; Heap = heap; MethodTable = mt; MetadataToken = token; }
public ClrmdPrimitiveType(ITypeHelpers helpers, ClrModule module, ClrHeap heap, ClrElementType type) { if (helpers is null) throw new ArgumentNullException(nameof(helpers)); ClrObjectHelpers = helpers.ClrObjectHelpers; Module = module ?? throw new ArgumentNullException(nameof(module)); Heap = heap ?? throw new ArgumentNullException(nameof(heap)); ElementType = type; }
public bool Init(SOSDac sos, ulong methodTable, ITypeHelpers helpers) { if (!sos.GetMethodTableData(methodTable, out _mtData)) { return(false); } MethodTable = methodTable; _helpers = helpers; return(true); }