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

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
主站蜘蛛池模板: 孟津县| 绥德县| 繁昌县| 莫力| 江津市| 乌兰察布市| 台安县| 潼南县| 二连浩特市| 合水县| 广水市| 施甸县| 舒兰市| 永泰县| 绥德县| 古交市| 文登市| 武穴市| 云南省| 鹿泉市| 肇源县| 吉木乃县| 德庆县| 北碚区| 安岳县| 乌恰县| 左云县| 大化| 襄汾县| 班玛县| 志丹县| 太白县| 延长县| 渑池县| 浙江省| 英超| 天峻县| 北川| 渝中区| 新化县| 定安县|