ICYMI C# 8 New Features: Switch Expressions

added by DotNetKicks
1/26/2021 3:19:20 AM

361 Views

In the first part of this series on what was introduced in C# 8, we're going to take a look at switch expressions. Switch expressions allow you to write fewer lines of code when making use of switch statements. This is useful if you have a switch statement that sets/returns a value based on the input.


0 comments