«

»

May 14 2017

C# 7 – Switch Statement with pattern matching

One of the new feature of C# 7 is an improved version of the switch statement that now support pattern matching.

Have a look at this video that explore how to refactor a series of if using the new switch statement with pattern matching.

 

I am a Software Engineer in Red Gate Software. My peers describe me as really enthusiastic, motivated with an infinite passion for software development, a relentless desire to keep learning and an amazing ability to involve others in my pursuit of excellence. I am a proficient C# developer and founder of DotNetCambridge: the official community on .NET in Cambridge.

Facebook Twitter LinkedIn YouTube  

Permanent link to this article: http://www.andreaangella.com/2017/05/c-7-switch-statement-pattern-matching/