Introducing C# 10: Mix declarations and expressions in a deconstruction

added by DotNetKicks
7/23/2021 5:02:18 PM

729 Views

Deconstructing an object in C# like JavaScript has been possible in C# for some time now. There are two syntaxes to achieve our ends: the first syntax which allows in a single line of code to declare and assign the variables that will contain the values of our deconstructed object.


0 comments