Can we read csharp sytle comment block from assembly using reflect

  • Thread starter Thread starter Abhi
  • Start date Start date
A

Abhi

I am trying to read c# sytle comment (///) from assembly using reflection? Is
it possible to do so.
 
Abhi said:
I am trying to read c# sytle comment (///) from assembly using reflection?
Is
it possible to do so.

No, the comments do not get compiled into the assembly.

Instead, if you instruct Visual Studio to do so, these xml comments are
written into into a file that defaults to the same name as the assembly but
has the extension ".xml". It should be straightforward to extract the
comments from this file using C#, since it is just plain XML.
 
I am trying to read c# sytle comment (///) from assembly using reflection?Is
it possible to do so.

Hi,

That info is not stored in the assembly. It's stored in a separate
file (the same name of the assembly but with a .xml extension). Now I
do not remember if this file is generated by the compiler , I bet it's
but I'm not sure
 
Back
Top