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); }