1

假设我在我的App_Code\Helpers.cshtml:

@helper PageHeader(string h1, string h2) { 
    <h1>@h1</h1>
    <h2>@h2</h2>
}

我想知道如何向它添加 xml 注释,以描述该帮助程序的功能以及描述参数,即您通常在 .NET 代码中执行此操作:

/// <summary>
/// Description
/// </summary>

...这样我就得到了 VS intellisense 的评论。

4

0 回答 0