The story’s score and claims

Comments on No. 67 of 143 · learn.microsoft.com · edition of Wednesday 2 December 2026

Union types (new in C# 15)

Summary

C# 15 introduces union types, declared with the union keyword, which represent a value that must be exactly one of a fixed set of case types. The compiler provides implicit conversions from each case type, exhaustiveness checking in switch expressions, and enhanced nullability tracking.

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules