是否可以将代码文档注释添加到剃须刀页面(分别是:组件)?
我发现可以对页面参数(在@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>
}
有人知道吗?