Tag: Pattern Matching
All the articles with the tag "Pattern Matching".
-
C# 15 的 Union 类型:编译器帮你管住多类型变量
Published: at 01:23 AMC# 15 引入 union 关键字,允许声明一个封闭的类型集合,编译器负责穷举检查。本文解析 union 类型的语法、工作原理、实际用途,以及如何在 .NET 11 Preview 2 中动手试用。
All the articles with the tag "Pattern Matching".
C# 15 引入 union 关键字,允许声明一个封闭的类型集合,编译器负责穷举检查。本文解析 union 类型的语法、工作原理、实际用途,以及如何在 .NET 11 Preview 2 中动手试用。