[Blazor] CascadingTypeParameter problem #38479
Labels
area-razor.compiler
This issue is related to the Razor compiler (now external)
bug
This issue describes a behavior which is not expected - a bug.
feature-blazor-builtin-components
Features related to the built in components we ship or could ship in the future
Priority:1
Work that is critical for the release, but we could probably ship without
Milestone
Hi,
I'm trying to refactor my existing components to use the newly introduced
CascadingTypeParameter
attribute but I'm running into compiler errors.BlzTableGrid.razor (this is the main grid component)
BlzTableGrid.razor.cs
BlzGridBaseColumn.cs
BlzGridColumn.cs
TableGrid.razor (page consuming the grid component)
I'm getting the following compiler error for what seems to be each column in
TableGrid.razor
page:>C:\Projects\Blazor-Components\DemoApp\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_Grid_TableGrid_razor.g.cs(563,29,563,34): error CS0449: The 'class', 'struct', 'unmanaged', 'notnull', and 'default' constraints cannot be combined or duplicated, and must be specified first in the constraints list.
Thank you for your help.
The text was updated successfully, but these errors were encountered: