What's coming next in C# - Fred Silberberg - NDC Oslo 2026

What's coming next in C# - Fred Silberberg - NDC Oslo 2026

🎙 Fred Silberberg 👥 231K 📅 November 24, 2026 ⏱ 66 min 👁 24 📄 expert opinion 🧭 2026-11-24
Available in: English (current) Français

Keywords

C# 15unionsclosed classesRoslyn compilerextensions

Summary

Fred Silberberg, a member of the C# compiler team, presents upcoming features in C# 15 at NDC Oslo 2026. He begins by explaining the importance of readable code in the era of AI assistance. The main topics are labeled break and continue, extension indexers, collection expression arguments, and the long-awaited union types. The talk focuses on union types and closed classes, showing how they can be used within the Roslyn compiler codebase to improve exhaustiveness and maintainability. He demonstrates converting existing compiler code to use closed classes, which allows the compiler to enforce exhaustive pattern matching. Then he introduces union types, explaining the default boxing-based implementation and the ability to create custom non-boxing unions for performance-critical scenarios. Throughout, he uses real examples from the compiler’s bound tree and operation factory, showing how unions and closed classes can simplify code and help catch missing cases at compile time. The talk concludes with a brief mention of polyfill considerations for using these features in earlier .NET versions.

165 words

Critical Evaluation

Value of the Information & Strength of the Argument

The talk provides substantial value by showing concrete applications of advanced language features within a real, complex codebase (the Roslyn compiler). The argumentation is strong, based on practical experience and direct involvement in the language design process. Silberberg convincingly explains the benefits of closed classes for exhaustive switching and unions for representing disjoint states, addressing potential concerns like boxing and property forwarding. He also demonstrates how to make unions work with existing code without breaking changes. The technical depth is high, making it valuable for experienced C# developers and compiler enthusiasts.

Scientific Rigor, Source Quality, Title Accuracy

The talk is scientifically rigorous in the sense that it is based on actual code from the Roslyn compiler and the speaker’s direct contributions. No external sources are cited, but the content is grounded in the language design process and practical implementation. The title accurately represents the content, which is a forward-looking overview of C# features. Given the source (an official NDC conference talk by a Microsoft engineer), reliability is high. No viewer comments were provided for analysis, so public reception could not be assessed.

191 words

Title / Content Match

The title accurately reflects the content, presenting upcoming C# 15 features including unions, closed classes, and extension indexers.

Quality & Reliability

8/10

Expert talk by a member of the C# compiler and language design team, based on real code from the Roslyn compiler. The content is demonstrative and technical, but not peer-reviewed. Credibility is high due to the speaker's role and direct involvement in the features discussed.

Key Moments

Cited Sources

Contribution & Novelties

The talk provides a unique, insider perspective on upcoming C# 15 features, specifically unions and closed classes, by demonstrating their use in the actual Roslyn compiler codebase. It goes beyond simple examples and shows real-world application, addressing performance considerations and integration with existing code. This adds practical value for developers planning to adopt these features.

Pour aller plus loin :

108 words

Radar Profile

The radar likely shows high scores in technical level and information quality, but slightly lower in quantity and reliability due to the talk's focus on a niche area and lack of external citations.

Reliability 8/10