Skip to content
Enable Dev Mode
Subscribe

Issue #2 Β·

C# unions in Blazor, Virtualize in .NET 11 and Blazor Blueprint 4.1

How C# 15 unions work in Blazor components, and a hands-on look at .NET 11's new Virtualize.

Izzy Β· Enable Dev Mode

Hi everyone, Izzy here.

It was a quieter fortnight between release candidates, which made room for good deep dives: how C# 15 unions behave in Blazor, and what .NET 11 changes in Virtualize. On the library side, Blazor Blueprint shipped two majors and Bit BlazorUI added three new design systems.

🟦 Blazor

Use C# unions and closed hierarchies in ASP.NET Core

Dmitrii Korolev walks through C# 15 union types and closed classes on .NET 11, including a section on Blazor.

  • What works: union-typed component parameters, JS interop, PersistentComponentState and prerendered parameters.
  • What doesn't: [SupplyParameterFromQuery], [SupplyParameterFromForm] and route values can't bind to unions yet.
  • What to do: try unions in component parameters on RC1, but keep query-string and form models as plain types.

πŸ“¦ Components & libraries

πŸ”€ .NET & the web

See you in two weeks! πŸ‘‹ Izzy

Get the next issue by email

What's happening in Blazor and .NET, every other Thursday. Unsubscribe anytime.