ILSpy
ILSpy copied to clipboard
XML comment contents XMLified in error
Repro
/// <summary>foo > 1</summary>
class C { } // compile with -doc:blahblah
Decompiles to
// C
/// <summary>foo > 1</summary>
internal class C
{
}
Expected: > remaining > (i.e. as-is from the generated XML file contents).
I am not sure, whether this is an error or just a request for "visual improvement"... The generated XML looks fine to me.
I consider it an error, since it does not reproduce (display) the comment as expected. Whether or not the bug is only in the interactive visualization I didn't research.
The XML file indeed contains the '>' unescaped. I think this is due to us reading the whole XML file using XmlTextReader and caching/indexing all the entries. XmlTextReader seems to automatically escape all characters that are used as XML tokens. No idea, whether there is a switch to turn this off.
We may be able to fix this by switching to https://github.com/KirillOsenkov/XmlParser instead of using XmlTextReader.