关于[C# 9: Range Operators in Switch Constructs and Pattern]的摘要:
Since C# was first introduced, developers have complained about the lack of a range operator in switch constructs. This made switches far less useful in C# than they were in VB. As part of the pattern-matching enhancements for C# 9, this limitation has been addressed.
原文地址: https://www.infoq.com/news/2020/07/CSharp-9-Range-Patterns/