
A first look at C# unions in .NET 11
C# is getting union types, and I wanted to try them out as soon as possible. In this post, I’ll show how to get them working with the current .NET preview SDK, what the setup looks like, and why unions can be a better fit than inheritance or interfaces in some cases.
To try out unions, you need the preview version of the .NET 11 SDK. You can install it …








