-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Blazor] CascadingTypeParameter problem #38479
Comments
@mkArtakMSFT I see that this issue has been assigned to the .NET 7 milestone. Does it mean that I will have to wait a year until the problem is resolved? I suspect other 3rd party component vendors will want to refactor their libraries to take advantage of the new feature and from what I've seen their grid components are structured in a similar fashion. Thanks. |
@daniel-p-tech same error! |
The generated code seems to be incorrect and incorrectly adds a comma, before the class constraint.
|
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: