You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sourceGenerator: error CS0314: El tipo 'T' no se puede usar como parámetro de tipo 'T' en el tipo o método genérico 'MyQueryCommand<T>'. No hay conversión boxing ni conversión de parámetro de tipo de 'T' a 'ITProject.Domain.IDomain'.
Page.razor.g.cs
publicstaticvoidCreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder__builder,intseq,int__seq0,global::ITProject.Components.MyQueryCommand<T>__arg0)whereT:global::ITProject.Domain.IDomain{
....................
}
public staticvoid CreateMyComponent_0_CaptureParameters<T>(global::ITProject.Components.MyQueryCommand<T>__arg0,outglobal::ITProject.Components.MyQueryCommand<T>__arg0_out){
__arg0_out =__arg0;}
if I put a restriction in CreateMyComponent_0_CaptureParameters<T> same as it is in CreateMyComponent_0<T> all works
the example:
MyComponent.razor
MyComponent.razor.cs
Page.razor
thats works perfect, but when I put a restriction in paramtype T, fails
MyComponent.razor.cs
The sourceGenerator:
error CS0314: El tipo 'T' no se puede usar como parámetro de tipo 'T' en el tipo o método genérico 'MyQueryCommand<T>'. No hay conversión boxing ni conversión de parámetro de tipo de 'T' a 'ITProject.Domain.IDomain'.
Page.razor.g.cs
if I put a restriction in
CreateMyComponent_0_CaptureParameters<T>
same as it is inCreateMyComponent_0<T>
all worksThe text was updated successfully, but these errors were encountered: