I’d like to take an object like this:
SortedList<string, SortedList<int, SortedList<DateTime, double>>> Data
and, for a given ‘int’ value (key of first nested sorted list), restructure it like this:
SortedList<DateTime, SortedList<string, double>>
or, better yet, this:
SortedList<DateTime, double[]>
where each ‘double[]’ has as many elements as there are KeyValue pairs in the SortedList.
I’m guessing Linq is the way to go, but can’t figure it out. Thanks for any suggestions.
digEmAll beat me to it, but here’s the second case in query comprehension syntax: