ValueTuple
When constructing a ValueTuple, such as
var vt = (ItemOne: "This is item 1.", ItemTwo: "This is item 2.");
and then using the Dump extension method, the dumped output does not reflect the semantic property meanings implied when constructing the ValueTuple.
It would be nice if instead of Item1 , Item2, etc if you dumped out the actual semantic property names used at instantiation.
Thank you
I am using v5.26.01 of LINQPad and v4.4.0 of System.ValueTuple via NuGet / Microsoft.
-
Anonymous commented
Then maybe add the names of the items as parameters to the Dump method ?
-
steve.crane commented
"This is because the ValueTuple type's named elements are erased at runtime, meaning there's no runtime representation of them." from https://josephwoodward.co.uk/2017/04/csharp-7-valuetuple-types-and-their-limitations