Take advantage of the new relational and logical patterns in C# 9.0 to make your code more readable, maintainable, and efficient. Pattern matching is a great feature first introduced in C# 7. You can ...
Documentation for the switch expression -- dated April 2021 -- reveals that: "Beginning with C# 8.0, you use the switch expression to evaluate a single expression from a list of candidate expressions ...