4 ms·
C# has some really fancy stuff as of 8.0. See: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/switch-expression https://docs.micro
by bob1029 6y ago
C# has some really fancy stuff as of 8.0. See:
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/switch-expression https://docs.microsoft.com/en-us/dotnet/csharp/language-refe...
and
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/switch#the-case-statement-and-the-when-clause https://docs.microsoft.com/en-us/dotnet/csharp/language-refe...