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
@@ -161,42 +160,6 @@ The `QuickGrid` component now supports row click events through the new `OnRowCl
161
160
162
161
The feature includes built-in CSS styling that applies a pointer cursor to clickable rows through the `row-clickable` CSS class, providing clear visual feedback to users.
163
162
164
-
## RenderFragment contravariance
165
-
166
-
The `TValue` type parameter in `RenderFragment<TValue>` is now marked as contravariant with the `in` modifier. This enables passing render fragments that accept base types where derived types are expected, eliminating the need for complex reflection-based adapters in generic component composition.
// Can now be assigned where specific type is expected
189
-
RenderFragment<List<Product>>specificTemplate=baseTemplate; // ✅ Works with contravariance
190
-
191
-
// DynamicComponent scenario now works directly
192
-
varparameters=newDictionary<string, object>
193
-
{
194
-
["ItemsTemplate"] =baseTemplate, // ✅ No adapter needed
195
-
};
196
-
```
197
-
198
-
Note that C# variance only works with reference types due to CLR limitations. Value types (structs, enums, primitives) do not support variance.
199
-
200
163
## Relative navigation with `RelativeToCurrentUri`
201
164
202
165
Blazor's `NavigationManager.NavigateTo()` and `NavLink` component now support relative URI navigation through the new `RelativeToCurrentUri` parameter. This enables navigation to URIs relative to the current page path rather than the application's base URI.
0 commit comments