.NET (OK, C#) finally gets union types🎉: Exploring the .NET 11 preview - Part 2 The article announces that union types, a long-requested feature common in functional programming languages, are finally being introduced in C# 15 as part of the .NET 11 preview. It explains how the new `union` keyword allows developers to define types that can represent one of several unrelated types, such as different operating system records, and demonstrates usage through implicit conversion and switch expressions. The post also notes that the preview is subject to change before the final .NET 11 release. Unions are one of those features that have been requested for years, and in .NET 11 or rather, C 15 they're finally here. In this post I describe what that support looks like, how you can use them, how they're implemented, and how you can implement your own custom types. This post was written using the features available in .NET 11 preview 4. Many things may change between now and the final release of .NET 11. What are union types? what-are-union-types- Unions are one of those basic data structures which are used all the time in the functional programming world; they're available in F , TypeScript, Rust…pretty much any functional-first language. There are many different types of union, but at their core they allow having a type that can represent two different things. Some of the simplest union types are the Option