Fix: CS8509 or CS0161 on a switch that is exhaustive over a C# 15 union type
Switch on the union value, not .Value, and use a switch expression or add case null to a switch statement. Statements need null coverage that expressions only warn about.
7 posts