Skip to content

Support for SE1050 - Exhaustive Switch expressions/statements

Compare
Choose a tag to compare
@ShaharPrishMSFT ShaharPrishMSFT released this 28 Sep 13:34
· 15 commits to main since this release
0170c09

SE1050 allows switch statements and expressions to be checked for exhaustiveness.

var x = myEnum.ForceExhaustive() switch
{
// All options must be mentioned
}