C# 7.0 bits: pattern matching

added by DotNetKicks
4/13/2018 1:53:05 PM

1 Kicks, 213 Views

Another interesting set of features introduced in C# 7.0 is related to patter matching. Pattern matching is a well-known concept in functional programming languages and in a nutshell, it allows to test data against some "pattern" (for example test if data belongs to some type) and to extract values from complex data (deconstruct).