Is it possible to add code documentation comments to razor pages (resp.: components)?
I found it possible to use standard documentation comments for page parameters (which are declared in @code blocks), but I am still looking for a way to add comments for the component (class) itself.
For parameters, this works:
@code
{
/// <summary> The Id of the selected account. </summary>
[Parameter]
public int SelectedAccount { get; set; }
}
So, for a class, it should be something like this:
@***
<summary> This component renders a table. </summary>
***@
or
@classcomment{
<summary> This component renders a table. </summary>
}
Does anyone know a way?