Say I have
interface IFoo
{
/// <summary>
/// Comments about Bar method goes here.
/// </summary>
void Bar();
}
I'm using reflection to display the methods at runtime:
MethodInfo[] mis = typeof(IFoo).GetMethods();
But I was wondering if I can get the comments included in <summary> </summary> for the methods. I realize that comments are just ignored my the compiler, but is there something that could be done to retrieve comments?
Right now, I have a separate file that has the methods and the comments, but I hate the redundancy and was wondering if there is a way to do this.