Tag | Is used for |
<c> | one line of source code |
<code> | many lines of source code |
<example> | usage example, can be used with the <code> tag |
<exception> | allows you to specify which exceptions our method may throw |
<include> | allows you to link to a file containing comments using XPath |
<list> | regular list |
<para> | This is a regular paragraph. |
<param> | method parameter descriptions, each parameter is described separately |
<paramref> | allows you to specify that the word inside the tag is a parameter |
<permission> | allows to describe access rights to the method |
<remarks> | additional information besides the <summary> tag |
<returns> | description of what the method returns |
<see> | allows you to specify links |
<seealso> | text in the "See also" section |
<summary> | general description |
<value> | allows you to describe properties |
/// <summary>
/// , .
/// </summary>
/// <param name="repeat"> </param>
/// <returns> </returns>
public string HelloHabr( int repeat)
{
string result = "" ;
for ( int i = 0; i < repeat; i++)
{
result += "Hello, HabraHabr!\n" ;
}
return result;
}
Source: https://habr.com/ru/post/41514/