【发布时间】:2020-09-27 12:37:42
【问题描述】:
是否可以将代码文档 cmets 添加到剃须刀页面(分别为:组件)?
我发现可以将标准文档 cmets 用于页面参数(在 @code 块中声明),但我仍在寻找一种为组件(类)本身添加 cmets 的方法。
对于参数,这是可行的:
@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>
}
有人知道方法吗?
【问题讨论】:
标签: asp.net-core razor razor-pages