Deconstruction

Splitting a tuple or compatible object into separate variables.

What is Deconstruction in C#?

Deconstruction — Splitting a tuple or compatible object into separate variables.

class Location
{
    void ReadCoordinates()
    {
        (double latitude, double longitude) = (40.0, -105.0);
    }
}

Level: Freelancer · More C# terms at this level

Updated