Deconstruction in C# 7

The deconstruction feature can be used to consume tuples. Also, the deconstruction feature can be used for user-defined types in .NET but for that, you need to provide a Deconstruct method.
public void Deconstruct(out T1 x1, …, out Tn xn) { … }
You can provide multiple overloads of the Deconstruct method.

Link: https://dzone.com/articles/deconstruction-in-c-7?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev