3
[C# 10] How to use declaration patterns with a switch statement?
(programming.dev)
An integer will never be a string. Originally you create an integer variable so it's telling you the string case is pointless.
Getting started
Useful resources
IDEs and code editors
Tools
Rules
Related communities
Wikipedia pages