Is it possible to obtain class summary at runtime?

empi picture empi · Feb 26, 2009 · Viewed 8k times · Source

Is it possible to obtain class summary at runtime in C#? I would like to obtain class summary through reflection and then write it to console. By class summary I mean summary comments before class definition, something like this:

/// <summary>
/// some description
/// </summary>
class SomeClass
{
}

I don't know if these comments are available after compiling the code, but if they are maybe there is a way to obtain them in code.

Thanks in advance for help.

Answer

BFree picture BFree · Feb 26, 2009

I once messed with this a while back, and used this guys solution. Worked pretty good:

http://jimblackler.net/blog/?p=49