Apr 5, 2026
Emiliano Montesdeoca
C# 15 Gets Union Types — and They're Exactly What We've Been Asking For
C# 15 introduces the union keyword — compiler-enforced discriminated unions with exhaustive pattern matching. Here's what they look like, why they matter, and how to try them today.