开发者

Can .NET dissemblers like Reflector access the comments in the origial source code?

the comments are no开发者_高级运维t 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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜