the comments are not XML comments, just normal comments
No. Comments are ignored by the compiler and have no representation in the assembly.
A disassembler can't get the original source code. It will only create source code that does the same thing as the original source code.
As comments doesn't result in any instructions in the program, they can't be recreated from the compiled code.
int x = 1 + 2 + 3;
and disassemble that, you will get int x = 6;
as that is what the compiled instructions do. –
Madrigal Just to add to Marks answer - the XML comments / docstrings found in the source code are also not written to the assembly, and so are also inaccessible using Reflector.
The XML comments are written to a separate xml file which the Visual Studio IDE needs access to in order to be able to supply these comments in intellisense.
No it won't read the commented line from Source Code
© 2022 - 2024 — McMap. All rights reserved.