1 result(s)
C# 15 adds preview support for union types, letting you define a closed set of case types with implicit conversions and exhaustive pattern matching. The post also notes this fits into a broader exhaustiveness roadmap.