你的位置: 码友网首页 / 资讯源列表 / C# 9: Range Operators in Switch Constructs and Pattern

关于[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/

收录时间: 2020-07-18 浏览量: 1903 分类: C#开发

| 0 收藏 | 0