ASP.NET剃须刀页面的代码文档注释?

时间:2020-06-08 14:03:45

标签: asp.net-core razor razor-pages

是否可以将代码文档注释添加到剃须刀页面(分别是:组件)?

我发现可以对页面参数(在@code块中声明)使用标准文档注释,但是我仍在寻找一种为组件(类)本身添加注释的方法。

对于参数,这有效:

@code
{
   /// <summary> The Id of the selected account. </summary>
   [Parameter]
   public int SelectedAccount { get; set; }
}

因此,对于一个类,应该是这样的:

@***
    <summary> This component renders a table. </summary>
***@

@classcomment{
    <summary> This component renders a table. </summary>
}

有人知道吗?

0 个答案:

没有答案