Browse Source

CustomDebugInformationTableTreeNode: improvements

* add Parent kind to tooltip
* Format value blob heap offset to 8 digits
pull/2799/head
James May 3 years ago committed by Siegfried Pammer
parent
commit
8ebe6a3673
  1. 4
      ILSpy/Metadata/DebugTables/CustomDebugInformationTableTreeNode.cs

4
ILSpy/Metadata/DebugTables/CustomDebugInformationTableTreeNode.cs

@ -211,7 +211,7 @@ namespace ICSharpCode.ILSpy.Metadata @@ -211,7 +211,7 @@ namespace ICSharpCode.ILSpy.Metadata
ITextOutput output = new PlainTextOutput();
var context = new MetadataGenericContext(default(TypeDefinitionHandle), module);
debugInfo.Parent.WriteTo(module, output, context);
return output.ToString();
return $"{debugInfo.Parent.Kind}:\n{output}";
}
}
@ -251,7 +251,7 @@ namespace ICSharpCode.ILSpy.Metadata @@ -251,7 +251,7 @@ namespace ICSharpCode.ILSpy.Metadata
}
}
[StringFormat("X")]
[StringFormat("X8")]
public int Value => MetadataTokens.GetHeapOffset(debugInfo.Value);
public string ValueTooltip {

Loading…
Cancel
Save