sardar97
sardar97
CC#
Created by sardar97 on 7/5/2024 in #help
How to Bind typeparam with property in Blazor?
well. what should i do there? could give an example code?
11 replies
CC#
Created by sardar97 on 7/5/2024 in #help
How to Bind typeparam with property in Blazor?
And in my case i have to define TValue this way (@typeparam TValue where TValue : class, new())
11 replies
CC#
Created by sardar97 on 7/5/2024 in #help
How to Bind typeparam with property in Blazor?
that is right the compiler will do that if i just define TValue like this (@typeparam TValue) but if i define it this way (@typeparam TValue where TValue : class, new()) then the compiler will not infer that and it would be must to define TValue from the parent component when the child used.
11 replies
CC#
Created by sardar97 on 7/5/2024 in #help
How to Bind typeparam with property in Blazor?
11 replies