An inserted GIF shows how clicking on the light bulb and selecting "Convert switch statement to expression" can reduce the amount of code required, using the switch expression introduced in C# 8.0.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results