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

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
主站蜘蛛池模板: 闽清县| 法库县| 峨山| 吉林省| 菏泽市| 庆安县| 虎林市| 麦盖提县| 高邑县| 台江县| 晴隆县| 洞头县| 西城区| 揭阳市| 霍林郭勒市| 台安县| 同德县| 旬阳县| 日照市| 宜兰市| 乳山市| 南宁市| 隆林| 洞口县| 丹东市| 龙岩市| 滕州市| 海宁市| 永德县| 高雄县| 临清市| 常德市| 洛扎县| 甘肃省| 昔阳县| 信丰县| 尤溪县| 岑溪市| 县级市| 元谋县| 右玉县|