- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10.5k
 
Closed
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
<Parent ItemsProvider="@_itemsProvider">
   <Child/>
</Parent>where
[CascadingTypeParameter(nameof(T))]
public class Parent<T>: IComponent 
{
   [Parameter] 
   public IItemsProvider<T> ItemsProvider {get;set;}
}
public class Child<T>: IComponent {}generated razor.g.cs:
public static void CreateParent_1_CaptureParameters<T>(
   global::MyApp.IItemsProvider<T> __arg0, 
   out global::MyApp.IItemsProvider<T> __arg0_out
) 
{
 __arg0_out = __arg0;
}
public static void CreateChild_2<T>(
   global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, 
   int seq, 
   MyApp.IItemsProvider<T> __syntheticArg0 // problem here: seems like lacks 'global::'
)
{
        __builder.OpenComponent<global::MyApp.Child<T>>(seq);
        __builder.CloseComponent();
}DotNet6.RC1
Metadata
Metadata
Assignees
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.