private void GridDoubleClick(object sender, MouseButtonEventArgs e) { DataGridRow row = sender as DataGridRow; var blob = row.Item switch { ClrObject clrObject => GetBlob(clrObject), IClrRoot clrRoot => GetBlob(clrRoot.Object), _ => null, }; if (blob == null) { return; } var hex = new HexViewer(); hex.Data = blob; hex.Show(); byte[] GetBlob(ClrObject @object) => _analyzer.ReadRawContent(@object); }
public GCRootPath(IClrRoot root, ImmutableArray <ClrObject> path) { Root = root; Path = path; }
public GCRootPath(IClrRoot root, IReadOnlyList <ClrObject> path) { Root = root; Path = path; }