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.
Prior to C## 8, the following code could be used to convert an int to its string equivalent:
#icymi #c# 8