Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible to get the comments of an assembly through Reflection?

I would like to know if there is a way to access comments on a class through Reflection or if they are completely stripped from the binaries.

like image 992
Ignacio Soler Garcia Avatar asked Mar 04 '11 11:03

Ignacio Soler Garcia


2 Answers

No. Comments are stripped by the compiler - they're not present in the binaries, so there's no way to get them back.

like image 60
RichieHindle Avatar answered Sep 19 '22 08:09

RichieHindle


Comments are ignored when code is compiled.

This means you can't get them "back" as they were never there in the first place.

like image 37
ChrisF Avatar answered Sep 23 '22 08:09

ChrisF