in switch case, so is there any alternative I can do, instead of making 2 identical switch statements with different variables or doing long if else if else statement?
what's your target framework?
As in .NET or?
yes your <TargetFramework>
.NET 4.7.2
If they are limited integers, you can switch on 1000*x+y or something
Eh, I just went for 2 swich cases, just woulda been nicer that's all
add <LangVersion>8.0</LangVersion> to your csproj file
Обсуждают сегодня