How to improve pattern matching and deconstruction in C#

added by DotNetKicks
4/13/2018 1:51:21 PM

1 Kicks, 236 Views

In the previous post I mentioned that C# pattern matching is far from complete. In particular, close coupling between matching and deconstruction is not present so far in C#. The maximum what can be achieved using deconstruction is extraction of values from complex types: