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
-
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.