官术网_书友最值得收藏!

Getting to know about pattern matching

Pattern matching is a new notion introduced in C# 7.0, which adds some power to the existing operators and statements. You can perform pattern matching on any data type and from that statement you can extract the value of that data type. There are two different types of pattern matching in C# 7.0:

  • The Is expression with pattern matching
  • Switch statements with pattern matching
主站蜘蛛池模板: 东莞市| 金门县| 佛学| 南木林县| 佛山市| 新建县| 霍城县| 宁明县| 西城区| 曲阜市| 旅游| 公安县| 嘉义市| 体育| 池州市| 保德县| 化隆| 靖西县| 泗阳县| 临汾市| 大宁县| 南宫市| 旺苍县| 黄梅县| 莒南县| 德州市| 武邑县| 神木县| 广东省| 宣城市| 西安市| 临武县| 安乡县| 容城县| 秦安县| 台州市| 鹤庆县| 锡林郭勒盟| 云梦县| 正蓝旗| 招远市|