你的位置: 码友网首页 / 资讯源列表 / C# 9.0: Pattern Matching in Switch Expressions

关于[C# 9.0: Pattern Matching in Switch Expressions]的摘要:

In this blog post, let’s look at C# 9.0 pattern matching in switch expressions. In the previous blog post you learned about using patterns with the is pattern expression, and you learned about the new relational patterns in C# 9.0, and also about the new pattern combinators and and or. If you haven’t read the previous blog post, I recommend you to read it, as I don’t repeat the basics of relational patterns and pattern combinators in this blog post.

原文地址: https://www.thomasclaudiushuber.com/2021/02/25/c-9-0-pattern-matching-in-switch-expressions/

收录时间: 2021-02-26 浏览量: 2053 分类: C#开发

| 0 收藏 | 0