Using Deconstructors in C# 7.0

added by DotNetKicks
3/20/2018 12:24:48 PM

2 Kicks, 322 Views

This is another awesome feature that got introduced with C# 7.0 which can be helpful in many scenarios while consuming various objects. Deconstruction is mostly discussed with another new feature System.ValueTuple but it can be used with other custom type as well. I have also discussed it in briefly in ValueTuple post at the link...