Untitled

 avatar
unknown
csharp
3 years ago
364 B
3
Indexable
public class Test 
{
    private string textContent = "Welcome to your new Blazor app.";
    private RenderFragment childContent { get; set; }

    private RenderFragment AddContent() => builder =>
    {
        builder.AddContent(1, textContent);
    };

    protected override void OnInitialized()
    {
        childContent = AddContent();
    }
}
Editor is loading...