9
假設我有一個方法如下:如何在編寫xml文檔時在方法摘要中引用方法參數?
/// <summary>
/// Here I want to reference the parameter <see cref="personId"/>.
/// </summary>
/// <param name="personId">
/// The person id.
/// </param>
/// <returns>
/// The <see cref="Person"/>.
/// </returns>
public Person GetPerson(int personId)
{
}
當我使用的沙堡發表我的XML文檔中,CREF:
<see cref="personId"/>
被轉換爲[:PERSONID!]。
在沙堡的警告是:
'未知參考鏈接目標'
有什麼建議? 謝謝。
[以備將來使用XML文檔標籤的列表(https://msdn.microsoft.com/en-us/library/vstudio/5ast78ax%28v=vs.100 %29.aspx) –
@馬修沃森謝謝,這是一個很大的幫助。 – user2078938