how to set comment to a method

hi all ,
I want to set a comment for a method that I defined it , so ,when i use this method again I want Visual Studio to show the comment that i wrote before (like built in methods).
I tried a format like this

Code Block
// Summary:
// here is method summary
//
// Parameters:
// here the paramethers
public void Any_Method(int Any_Parameters)
{
// method body
}

but this format doesn't work.

if there is a standard format to write the comment on methods to be displayed by Visual Studio or there is another way to do this job.

thanx

[843 byte] By [bolashokry] at [2008-1-10]
# 1
Code Block

/// <summary>
/// This is a summary of a method that will come right after this.
/// </summary>
private void testS(object sender, EventArgs e)
{

}

this will work for the summary part, i dont know about the parameters though.
hope this helps.
CameronKloot at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 2

Hi,

what Cameron posted above is called Xml Comments, thats the name of them. If were to do a search for them on MSDN you'll get a lot of information on them, there are a few as well as <summary> you can use to document your code. Also there are tools, NDoc, that will parse them and build helps files similar to the Visual Studio help files.

DerekSmyth at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...