What's the coolest thing coming in the next version of C#?
Csharp Csharp 15 Dotnet Union Types Discriminated Unions Pattern Matching Mads Torgersen Visual Studio Vscode Preview Compiler Net Development
Mads Torgersen demonstrates C# 15's new union types feature, allowing developers to model closed sets of unrelated types with full strong typing and switch-based pattern matching. The feature arrives in November 2026 with preview compiler support in Visual Studio and VS Code. Ideal for .NET developers looking to adopt newer C# idioms.