public override IEnumerable <ClrType> EnumerateTypes() { foreach (var type in _runtime.GetHeap().EnumerateTypes()) { if (type.Module == this) { yield return(type); } } }
public NativeStaticVar(NativeRuntime runtime, Address addr, Address obj, ClrType type, string name, bool pinned, bool interior) { Address = addr; Object = obj; _type = type; _name = name; _pinned = pinned; _interior = interior; _type = runtime.GetHeap().GetObjectType(obj); _appDomain = runtime.GetRhAppDomain(); }
public NativeStaticRootWalker(NativeRuntime runtime, bool resolveStatics) { Roots = new List<ClrRoot>(128); _runtime = resolveStatics ? runtime : null; _heap = _runtime.GetHeap(); }
public NativeHandleRootWalker(NativeRuntime runtime, bool dependentHandleSupport) { _heap = runtime.GetHeap(); _domain = runtime.GetRhAppDomain(); _dependentSupport = dependentHandleSupport; }
public NativeStaticRootWalker(NativeRuntime runtime, bool resolveStatics) { Roots = new List <ClrRoot>(128); _runtime = resolveStatics ? runtime : null; _heap = _runtime.GetHeap(); }