[英]Is there a way to create Blazor components documentation from the parameter's comments?
使用 swagger,您可以根据注释自动创建 API 方法的文档。
是否可以做同样的事情,但对于 Blazor 组件?
如果您指的是 Blazor 组件的参数并且您需要文档(即智能感知摘要),那么是的。 在 Visual Studio 中,如果您按如下方式构建代码,则当用户从另一个 Blazor 组件引用参数时,它应该会显示出来。
/// <summary>
/// Here is the description of the parameter InputValue and what it is used for
/// </summary>
[Parameter]
public string InputValue { get; set; }
在 Visual Studio 中,如果您键入///
它应该为您自动生成格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.