We can add a specific xml summary as a comment for the method (class, etc.), and then Visual Studio will get it correctly.
/// <summary>
/// This is a test method.
/// </summary>
public void PrintHW()
{
Console.WriteLine("Hello World!");
}
Programmatically get Summary comments at runtime
c# getting interface method comments
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.