Skip to content

Commit aa5a14a

Browse files
dimodidimodi
authored andcommitted
kb(Common): Update inheritance KB
1 parent cef998c commit aa5a14a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

knowledge-base/common-extend-inherit-wrap-reuse-telerik-blazor-components.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,15 @@ namespace YourAppName.BaseComponents
266266
}
267267
````
268268

269+
If `ReusableComboBox.razor` has a separate `razor.cs` file, the partial class must be defined as generic:
270+
271+
````C#.skip-repl
272+
public partial class ReusableComboBox<TItem, TValue> : ComponentBase
273+
{
274+
275+
}
276+
````
277+
269278
## See Also
270279

271280
* [Using Base Classes with Razor Components](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-9.0#specify-a-base-class)

0 commit comments

Comments
 (0)