From 1dab797da76eb6d9beefc031b024779ed3695f6f Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:07:21 -0400 Subject: [PATCH] Remark on components as generic types (#33778) --- aspnetcore/blazor/components/generic-type-support.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aspnetcore/blazor/components/generic-type-support.md b/aspnetcore/blazor/components/generic-type-support.md index 94feadd5ce..65e8374751 100644 --- a/aspnetcore/blazor/components/generic-type-support.md +++ b/aspnetcore/blazor/components/generic-type-support.md @@ -32,6 +32,8 @@ C# syntax with [`where`](/dotnet/csharp/language-reference/keywords/where-generi @typeparam TEntity where TEntity : IEntity ``` +A generic type is supported, but components aren't supported as the generic type. To render components by type, consider using a . For more information, see . + In the following example, the `ListItems1` component is generically typed as `TExample`, which represents the type of the `ExampleList` collection. `ListItems1.razor`: