.NET (OK, C#) finally gets union types🎉: Exploring the .NET 11 preview - Part 2
C# 15, shipping with .NET 11, adds union types, a long-requested feature common in functional languages and available in F#, TypeScript and Rust. A post in a series on the .NET 11 preview describes how the support works, how to use unions, how they are implemented, and how to build custom union types. It is based on .NET 11 preview 4, and behavior may change before the final release.
AI-written summary, checked against the cited sources. How summaries work
