方法文件使用 param 註釋並返回元素

/// <summary>
/// Returns the data for the specified ID and timestamp.
/// </summary>
/// <param name="id">The ID for which to get data. </param>
/// <param name="time">The DateTime for which to get data. </param>
/// <returns>A DataClass instance with the result. </returns>
public DataClass GetData(int id, DateTime time)
{
   // ...
}

IntelliSense 顯示每個引數的說明:

StackOverflow 文件

提示:如果 Intellisense 未在 Visual Studio 中顯示,請刪除第一個括號或逗號,然後再次鍵入。