I have Dictionary<double, Dictionary<double,double>>where the keys of the internal dictionaries are the same, and I want to parse this so that the output is:
key1,dict1val1,dict2val1
key2,dict1val2,dict2val2
...
Sorry, I had to say that foreign keys are not needed.
Here is an example of what I do after:
(1.0, (1.0, 1.1)),(2.0, (1.0,1.2))
(1.0, (1.1, 1.3)),(2.0, (1.1,1.4))
(1.0, (1.2, 1.5)),(2.0, (1.2,1.6))
should produce the result:
1.0,1.1,1.2
1.1,1.3,1.4
1.2,1.5,1.6
Is there an elegant way to do this in LINQ? I saw similar questions for string dictionaries, but the syntax does not work for doubling.
I also ordered a book on this topic, but I need to do this as soon as possible.