May 14

C# 7 – Switch Statement with pattern matching

1  comments

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.

 


Tags

C#, pattern matching, switch, switch statement


You may also like

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Subscribe to our newsletter now!

Get instant access to the Master C# 9 webinar to learn all the new exciting C# 9 features quickly.
Get regular videos and news on C# and .NET and offers on products and services to master C#.

We will collect, use and protect your data in accordance with our Privacy Policy.

>