Switch Expressions

Posted by Joe Enos on April 02, 2021 · 1 min read

The switch statement in C# has been there since the beginning. Originally it was for a simple data type only, and you could only go through cases of constant values. Now there's so much more.

View code on GitHub