Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

.net

reflector

the comments are not XML comments, just normal comments

like image 366
Aperture Avatar asked Sep 23 '10 06:09

Aperture


2 Answers

No. Comments are ignored by the compiler and have no representation in the assembly.

like image 89
Mark Cidade Avatar answered Sep 30 '22 03:09

Mark Cidade


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.

like image 35
Guffa Avatar answered Sep 30 '22 02:09

Guffa