-3

there is a way to read the summary of function automatically from another CS file? I explain - I have the method

void foo(int x);

with Reflection I read the function name and his parameters but I also need to read his summary. The summary is XML style.

Thanks.

Blorgbeard
  • 101,031
  • 48
  • 228
  • 272

1 Answers1

0

Generate a documentation XML file by checking the checkbox option in the build tab of the properties of your project and build it.

If you refer to the assembly, the documentation will be loaded automatically.

Also, the XML contains simple raw data from the xml comments.

For this function to work you'll need to use the XML /// comment style like this:

/// <summary>
/// Class description
/// </summary>
public class Foo
{
   /// <summary>
   /// Constructor description
   /// </summary>
   void Foo()
   {
   }
}

Other than in the XML or .cs files this info is not available.

enter image description here

Stefan
  • 17,448
  • 11
  • 60
  • 79