All updates
dotnet: Explore union types in C# 15
Apr 2, 2026
C# 15 adds preview support for union types, letting you define a closed set of case types with implicit conversions and exhaustive pattern matching. The post also notes this fits into a broader exhaustiveness roadmap.
- Source: .NET