CS8509

The C# compiler warning that a switch expression does not handle all possible input values, naming one that no arm matches.

In more detail

Treat it as a to-do list: when a new enum member is added, every switch expression that ignores it lights up in the build. The alternative, a discard arm, hides the problem.

Related terms

Taught in

References