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);
        }
Beispiel #2
0
 public GCRootPath(IClrRoot root, ImmutableArray <ClrObject> path)
 {
     Root = root;
     Path = path;
 }
Beispiel #3
0
 public GCRootPath(IClrRoot root, IReadOnlyList <ClrObject> path)
 {
     Root = root;
     Path = path;
 }