So, I have a dictionary of the form Dictionary<int, Dictionary<int, Object>> myObjects
, and I would like to reduce it to List<Object> flattenedObjects
as simple as possible. I tried to come up with a smart solution, but so far all that I have started working is a solution with two nested foreach -loops that iterate over all the elements, but I suppose there should be a better way to accomplish this using LINQ.
bobblez
source share