How to write a method description

Possible duplicate:
Multi-line XML comments in C # - what am I doing wrong?
Multi-line XML comments in VB.Net and Visual Studio Intellisense

I want to have some description for my method

/// <summary> /// Perform a divide by b /// eg a = 1, b = 2 /// will return 0, since (1/2) = 0.5 /// </summary> /// <returns>int value</returns> public static int Div(int a, int b) { return (a / b); } 

and I want the description to be displayed in the same format that I am typing. however, this text will always be displayed in oneline.

Is there any tag that I can use to ask visual studio to include all this space and a new line?

thanks

+7
source share
1 answer

I believe your lines in the <para /> tags work.

 ///<summary> ///<para>line1</para> ///<para>line2</para> ///</summary> 
+14
source

All Articles