Support named tuple elements
When calling Dump() on a typle with named elements, the output columns are "Item1", "Item2", etc. instead of the actual names.
Example:
var names = new List<(int Id, string First, string Last)>();
...
Actual output:
Item1 Item2 Item3
1 Alice Cooper
2 Bob Hope
Expected / desired output:
Id First Last
1 Alice Cooper
2 Bob Hope
![](https://secure.gravatar.com/avatar/3186bd5841f51ebc9386ec7b157130fa?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Colin Ng commented
It's explained [here](https://forum.linqpad.net/discussion/1358/valuetuple-name-display) why that is extremely difficult to do.
-
Kurt Bachtold commented
Additionally there are other issues with tuples that could be improved in LINQPad 7.
1. when typing out a tuple deconstruct, like var (x, y) = (0, 0), the intellisense keeps trying to replace x & y with other scoped names.
2. same with trying to create a tuple with named parameters, like var coord = (x:0, y:0).If LINQPad could be contextually aware in these scenarios it would be a little less disruptive to the flow of typing code. Thanks!
-
Ilia Tsvetkov commented
It's 2022, but still LinqPad doesn't support this.. Please add this nice feature
-
karel commented
I was surprised that this is not included yet.