3 ms·
Note that, even without positional records, C# already allows types to support this syntax: https://docs.microsoft.com/en-us/dotnet/csharp/deconstruct https://d
by contextfree 6y ago
Note that, even without positional records, C# already allows types to support this syntax: https://docs.microsoft.com/en-us/dotnet/csharp/deconstruct https://docs.microsoft.com/en-us/dotnet/csharp/deconstruct
(the "Person" type would have to implement a "Deconstruct" method with two string out parameters, or alternatively someone could write an equivalent extension method)